Viewing 15 posts - 4,861 through 4,875 (of 15,381 total)
Kevlarmpowered (5/16/2014)
SELECT lots_of_columns
FROM table
WHERE (column5 = '1'...
May 16, 2014 at 8:41 am
Kevlarmpowered (5/16/2014)
http://www.sqlservercentral.com/Forums/Topic1571755-3077-1.aspx(it was a seat to keyboard interface error over here) :blink:
hehe no problem. Will take a look at your other thread.
May 16, 2014 at 8:36 am
Kevlarmpowered (5/16/2014)
Right now I have to do something like this and it is time consuming every time I have to query a specific table...SELECT
I think you left out most of...
May 16, 2014 at 8:30 am
jdasilva (5/15/2014)
Sean Lange (5/15/2014)
jdasilva (5/15/2014)
dim parm as...
May 15, 2014 at 2:52 pm
laercionb (5/15/2014)
http://www.sendspace.com/file/zy5qh9
This is nothing like DDL or Sample data. The idea here is that you post create table statements and insert statements so we can recreate the table(s) in our...
May 15, 2014 at 2:47 pm
jdasilva (5/15/2014)
dim parm as ADODB.Parameter
dim cmd as...
May 15, 2014 at 2:40 pm
You can use OUTPUT with dynamic sql too. No need for a temp table. I took Calvo's example and changed it so it uses OUTPUT parameters. The other change I...
May 15, 2014 at 12:37 pm
JJR333 (5/15/2014)
This number is needed to divide into...
May 15, 2014 at 12:22 pm
dcwilson2009 (5/15/2014)
Thanks for the reply. My query gives a single row. Yours gives me multiple rows.
You only get one row because there is only one row with the max...
May 15, 2014 at 12:18 pm
So you only want to get the ProcDate and DayKey for the row with the highest DayKey?
How about this?
SELECT top 1 ProcDate, DayKey
FROM dbo.MyTable a
WHERE ExtractType = 'D'
order...
May 15, 2014 at 12:16 pm
dcwilson2009 (5/15/2014)
SELECT ProcDate , MAX(b.DayKey) DayKey
FROM dbo.MyTable a ,
...
May 15, 2014 at 10:31 am
alicesql (5/15/2014)
I'm having some trouble understanding how the CTE coding works.
A cte is just an inline view. You should read up on them because they are very powerful and you...
May 15, 2014 at 10:21 am
Viewing 15 posts - 4,861 through 4,875 (of 15,381 total)