Viewing 15 posts - 1,816 through 1,830 (of 10,144 total)
Luis Cazares (1/25/2016)
Of course, there's a syntax error as you're following the FORMAT syntax instead of the CAST syntax.
Worth a try:
Dim SQLStringtempprd123 As String = "SELECT CAST([create_dtim] AS DATE), COUNT(*)...
January 25, 2016 at 8:15 am
jcachado (1/25/2016)
Dim SQLStringtempprd123 As String = "SELECT CAST([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE CAST([create_dtim],'dd-mm-yyyy') between...
January 25, 2016 at 8:09 am
jcachado (1/25/2016)
ChrisM@Work (1/25/2016)
jcachado (1/25/2016)
The statment is:
SELECT format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE format([create_dtim],'dd-mm-yyyy') GROUP BY format([create_dtim],'dd-mm-yyyy') order by format([create_dtim],'dd-mm-yyyy') desc
Its run, but i think the DESC dont work...
January 25, 2016 at 7:57 am
jcachado (1/25/2016)
The statment is:
SELECT format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE format([create_dtim],'dd-mm-yyyy') GROUP BY format([create_dtim],'dd-mm-yyyy') order by format([create_dtim],'dd-mm-yyyy') desc
Its run, but i think the DESC dont work because is...
January 25, 2016 at 7:48 am
jcachado (1/25/2016)
My mistake , already run but not accept the CAST.Thks ,
JC
Did you get an error message? If so, posting it here would reduce the number of guesses we have...
January 25, 2016 at 7:36 am
jcachado (1/25/2016)
Already work in this way:
SELECT Format([create_dtim],'dd-mm-yyyy'),COUNT(*) AS tot FROM Back_ickpt_prd1 WHERE Format([create_dtim],'dd-mm-yyyy') GROUP BY Format([create_dtim],'dd-mm-yyyy' order by Format([create_dtim],'dd-mm-yyyy'
But when i put ORDER BY dont run.
What is the error?
Thks...
January 25, 2016 at 6:18 am
jcachado (1/25/2016)
I need help for this statement:
SELECT whse_id as wh,count(*) as tot FROM Back_ickpt_prd1 where Format([create_dtim],'hh:nn:ss') between '21-01-2016 00:00:01' and '22-01-2016 00:00:01' group by whse_id
This statement work and show :
wh...
January 25, 2016 at 4:49 am
Eirikur Eiriksson (1/23/2016)
Ed Wagner (1/23/2016)
Eirikur Eiriksson (1/23/2016)
ChrisM@Work (1/22/2016)
Ed Wagner (1/22/2016)
Greg Edwards-268690 (1/21/2016)
Eirikur Eiriksson (1/21/2016)
Greg Edwards-268690 (1/21/2016)
Steve Jones - SSC Editor (1/21/2016)
Greg Edwards-268690 (1/21/2016)
January 25, 2016 at 1:53 am
Ed Wagner (1/22/2016)
Greg Edwards-268690 (1/21/2016)
Eirikur Eiriksson (1/21/2016)
Greg Edwards-268690 (1/21/2016)
Steve Jones - SSC Editor (1/21/2016)
Greg Edwards-268690 (1/21/2016)
January 22, 2016 at 9:39 am
SQLRNNR (1/19/2016)
BL0B_EATER (1/19/2016)
Anybody notice the new hair style?
Jabba the Hat.
January 19, 2016 at 9:18 am
rodjkidd (1/19/2016)
Ed Wagner (1/19/2016)
Grumpy DBA (1/19/2016)
RIP Glenn Frey, co-founder of the Eagles. Only 67 years old, left this world much too soon.Did Ramsey play last night?
Yeah, I heard about...
January 19, 2016 at 6:57 am
rodjkidd (1/19/2016)
BL0B_EATER (1/19/2016)
ChrisM@Work (1/19/2016)
BL0B_EATER (1/19/2016)
January 19, 2016 at 2:58 am
BL0B_EATER (1/19/2016)
January 19, 2016 at 2:34 am
Jeff Moden (1/18/2016)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)[hrCan we agree on "SARGable in one direction only" as it's often sufficient to permit tweaking a decent plan?
With the battles I'm...
January 18, 2016 at 10:06 am
Jeff Moden (1/18/2016)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)[hrCan we agree on "SARGable in one direction only" as it's often sufficient to permit tweaking a decent plan?
With the battles I'm currently facing at...
January 18, 2016 at 8:05 am
Viewing 15 posts - 1,816 through 1,830 (of 10,144 total)