Viewing 15 posts - 511 through 525 (of 5,504 total)
I like the FizzBuzz puzzle.
I use it to identify if an applicant
- prefers using a set or loop based method where both methods are possible
- knows enough T-SQL to...
March 11, 2012 at 3:59 am
I surrender.
March 11, 2012 at 3:38 am
Please copy the code I posted and run it as it is. Without any modification. Neither renaming columns nor anything else.
What result do you get?
March 11, 2012 at 3:30 am
I've seen the expected output before.
But what rules do apply?
Are the values of indexnumber identical to adbid or how are those values calculated? What does the value in...
March 11, 2012 at 3:12 am
shyamhr (3/11/2012)
hi Lutz,...
Thanks... Please suggest any other solution
I can't really offer any other solution since the one I posted works just fine for me (= returning the expected result).
One reason...
March 11, 2012 at 3:06 am
I'm wondering why this needs to be a T-SQL task.
In a decent normalized database structure there shouldn't be a column with a comma separated list and esepcially not the need...
March 11, 2012 at 1:31 am
I can't spot the difference of the two queries. Both seem to be identical.
And why do you return columns in the subquery that aren't used in the outer query at...
March 11, 2012 at 1:01 am
Please describe how the input data need to be separated to return the result set you're looking for. Even though we could figure most of it by reverse-engineer your undocumented...
March 11, 2012 at 12:56 am
May I kindly ask you again to include the Sortorder column in the output of your select statement?
I know you can't post your real data. But when troubleshooting it really...
March 10, 2012 at 9:40 am
What is the Sortorder column based on? Can you add it to your output to see what values are in that column?
Just guessing here but the order might be exactly...
March 10, 2012 at 8:55 am
Is the issue resolved or do you still get unordered results?
March 10, 2012 at 8:45 am
I can't see any ORDER BY in your query...
bcp "select 'Col1', 'Col2', 'Col3','Date' union all select top 15 cast(Col1 as varchar(25)) as Col1,Col2,Col3,cast(DATE as varchar(25))as DATE from TABLENAME where SortOrder<>0...
March 10, 2012 at 8:07 am
You might want to have a look at Erlands blog for several options.
March 10, 2012 at 6:25 am
Do you have an ORDER BY in the SELECT statement used in the BCP command?
As long as there's no specific ORDER BY in a statemewnt, the order of returned rows...
March 10, 2012 at 6:14 am
Viewing 15 posts - 511 through 525 (of 5,504 total)