Viewing 15 posts - 2,731 through 2,745 (of 2,894 total)
If there are no related records found, the above query will not count the record from master table. Therefore, LEFT JOIN is more appropriate.
June 18, 2010 at 9:20 am
Try:
SELECT GroupItem AS Item
,SUM(QUANTITY) AS QUANTITY
FROM (
...
June 18, 2010 at 8:33 am
Sorry, Sorry, Sorry!
I didn't mean converting int 20091201 into DateTime as 01 Jan 2009. Above would never work of cause. What I mean (for INT) is different.
Try this:
...
June 18, 2010 at 6:23 am
KMPSSS (6/18/2010)
I have small doubt, Is there any performance issue to joining the query using views.Can you please suggest me.
You are absolutely right! You have right concerns! There are!
But I...
June 18, 2010 at 6:11 am
I wanted to create a bit more efficient query but the following made me to ask you one small question:
Chaitanya Patil (6/18/2010)
390 ...
June 18, 2010 at 5:48 am
GilaMonster (6/18/2010)
...If the date can't be stored as a date due to precision issues, store it as a string. ....
How this would help for working with milliseconds? As soon as...
June 18, 2010 at 4:55 am
Absolutely agree.
However:
1. If you really need to use something to identify what happen before what, and that difference is down to millisecs and no other datetime functions are required...
June 18, 2010 at 4:46 am
You can store it as meaningfull value available for comparisons in "where" clause, but it cannot be datetime, so no datetime functions will be applicable.
What you do is: format it...
June 18, 2010 at 4:24 am
Well, well, well...
Actually, no surprise, BCP, old as Sybase (and also originated by them), is the fasterst way to get data out DB and back into it...
Cheers 🙂
June 17, 2010 at 10:13 am
Now,
You have couple of choices:
1. Calculate time of single login and then sum it.
- It will illuminate the mismatches, but look quite stupid as you will have some thing...
June 17, 2010 at 3:48 am
1. To achieve the required order and format of data NO CURSOR is required in your case. As shown in my examples, you just introduce the artificial "order" column which...
June 17, 2010 at 1:05 am
Once upon a time there was a purple crocodile in a forest, he went to the office when the summer just started to open doors to the bus full of...
June 16, 2010 at 11:57 am
Elliott Whitlow (6/16/2010)
...I don't really have any objection if that column is used for comparisons only, if they ever want to display it I might consider smalldatetime...
You can...
June 16, 2010 at 11:45 am
Just a small suggestion, if you will go with creating persisted computed column (and assuming your columns are in two diffrent tables), store the date as an INT using:
FLOOR(CAST(DateTimeValue...
June 16, 2010 at 10:40 am
Viewing 15 posts - 2,731 through 2,745 (of 2,894 total)