After inserting one row for Ukrainian Language, the field in app page is showing ????? even after removing the row [closed] - sql-server

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
There is a TEXT_TRANS table which contains the translation of a specific word and they contain same textid but different languageid. Suppose there is a row in TEXT_TRANS table for the Name column 'Mohan' which has a specific textid and languageid . For Ukrainian language there will be another row for Name column 'мохан' which will have same textid as of english but different languageid. So I have inserted one row for Ukrainian language but forgot to put N before ukrainian word because it will show ?????. Then I updated correctly by putting N before the ukrainian word. However, The field is still showing as ?????? even when I deleted that row for Ukrainian language.

To store and select Unicode character in database you have to use NVARCHAR instead of VARCHAR. You need to be sure that column has correct datatype.

Related

how to write sql query to count? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to write a query for count 'noOfDistribution' within a date
and by reference. for example, there are 2 in 1/5/2013.
In addition,can someone recommend some ebook/website to learn advanced skills in
query? Thanks for helping.
Answering your question:
SELECT input_Date, REFERENCE, count(*)
FROM YourTable
GROUP BY input_Date, REFERENCE
But it will result something different you pointed, since for the date 2/5/2013, it will count 6 elements for REFERENCE null
You can do something like thiss....
select count(Input_date) over (partition by Input_date,reference),* from table
By this you can find count of Particular date such as 1/5/2013 has 2 count
alternative way
select date,reference,count(*) from table group by date,reference

Excel dd-MM-YY format formula [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
i have a excel sheet with mixed date format.
Like 15-05-81 and the normal datetime Format 11/07/1990 00:00:00..when i am importing thses to a Database, The non date format give me a null.Is there anyformaula i can convert the text date to a datetime format ?
Thank You !
Try this:
Highlight the entire date column in your spreadsheet
Press Ctrl+H
Enter find what: -
Enter replace with: /
Click replace all
This will convert "11-07-90" into "11/07/90".
You may run into problems if the date to be converted has the wrong order also (ie. dd-mm-yy would result in dd/mm/yy which is wrong, the standard format is mm/dd/yy).

Unable to show report in desire format [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I asked this question before and someone vote down myquestion saying that this question is not valid. I have spent three days on this problem. So please if you do not understand it , it does not mean that the question is invalid. Here it is:
I have created a SSRS report. I am facing problem with respect to page break and Grouping.
Here is the out put of my report.
On each page I want to show record group by Landing Date and Buyer Name.
That is on first page following should be shown:
Buyer Name Landing Date Actual Price
SHETLAND 06-Jan-05 100989.754569257
On second page:
Buyer Name Landing Date Actual Price
SHETLAND 11-Jan-05 1096677.95045137
On third page:
Buyer Name Landing Date Actual Price
FRESH 14-Jan-05 300080.972657965
SHETLAND 14-Jan-05 157372.157557842
==========================================================================
I applied Grouping using group properties , but no effect. Basically I want to show records with same landing date on one page.
Try to create Grouping on two level (nested). That is first group by Landing Date and then right click on newly created group and create a child group . and in child group create expression to group by Buyer Name. Hope it will work.
You need to add a row group with the group by on Landing Date and Buyer name, and then in the group properties tick the check box for 'Add a page break between instances of a group'

Counting Number of records in each row in SQL Server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Again I m sry fr that non-sense way of asking the question what i wanted to say that at the last column some rows have null values and some rows have a value which is not necessary.. So what i wanted to do to delete those rows which have not null values in last column and then deleting the whole last column...
The Table looks like this..:
Col1 Col2 Col3 Col4
A A A A
B B B
C C C
D D D D
So here i want to keep the row 2 and 3 and delete the row 1 and 4..Then deleting the whole column 4...
My answer is based on your comment:
Oopss!!! i am extremely sorry fr making a mess..:( what i wanted to
say that at the last column some rows have null values and some rows
have a value which is not necessary.. So what i wanted to do to delete
those rows which have not null values in last column and then deleting
the whole last column..
Here it is:
Delete from dbo.YourTable Where Last_Column IS NOT NULL
After that, dropping the column is easy if you go to table right click -> design
If it doesn't let you drop the column due to an error, you should do this:
Tools -> Options -> Designers-> Uncheck "Prevent saving changes that require table re-creation"
I'd suggest that you undo that change after you're done though.
Best of luck =)
What you're trying to do won't work because they'll all have the same number of columns.
So don't waste your time trying to implement it because it won't solve whatever problem you're trying to solve!
DELETE dbo.table WHERE Col4 IS NOT NULL;

Automatic generate a sales order line for every sales order [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Im experimenting with Dynamics Nav 2009.
Is there a way to automatically insert a sales line every time I make a new sales order?
I want postage to be included everytime Im making a new sales order.
There are two ways to solve this, one without programming, and one almost without programming.
If you postage line is a standard "charge" added to all orders then you can actually use the "Invoice Discount" functionality. Besides allowing you to assign an actual discount (typically being applied if the order is above a specific amount), then you can also use the functionality to add a "Service Charge". Either to be inserted on all orders, or only if the order total is below a certain "Minimum Amount".
You set it up by specifying the "Invoice Discount Code" field on the Customers and enable the automatic calculation in the "Calc. Inv. Disc." field in "Sales & Receivable Setup" table. The postage lines are not inserted as actual sales lines, but are calculated and applied when posting (or using the total / statistics button).
The other option is the use the "Standard Sales Codes". Here you can specify a number standard lines which are to be inserted whenever the standard sales code are selected. This is where I said a little programming is required, as the system doesn't automatically insert the lines. But you can insert a call to the function to insert the lines automatically when the customer no. has been entered.
This change would most likely require a modification from your NAV Partner.
The modification could add C/AL code to automatically insert a new Sales Line every time a new Sales Header record is created.
OnInsert()
SalesLine.INIT;
SalesLine."Document Type" := "Document Type";
SalesLine."Document No." := "No.";
SalesLine."Line No." := 0;
// Additional Code
SalesLine.INSERT(TRUE);

Resources