Viewing 15 posts - 1,996 through 2,010 (of 8,731 total)
I'm posting the function again with some comments. Hopefully those comments will help you understand how the query is working. I should strongly recommend that you read the following article...
October 25, 2016 at 7:12 am
Ed Wagner (10/25/2016)
Grumpy DBA (10/25/2016)
djj (10/25/2016)
LineWhite
Snow
flake
October 25, 2016 at 7:00 am
ninamahezi (10/25/2016)
I want a sql function that will allow to make one update but with several replace on the same column.
For exemple
Replace the space by vacuum('')
...
October 25, 2016 at 6:55 am
Please post DDL, sample data and expected results. If you don't know how to do it, read the links in my signature.
October 24, 2016 at 2:22 pm
.Patrick (10/24/2016)
Currently we are developing a new application for our company and I got a question related to the database architecture. We one database (DatabaseA) that is our main...
October 24, 2016 at 1:22 pm
ZZartin (10/24/2016)
Ed Wagner (10/24/2016)
Manic Star (10/24/2016)
Ed Wagner (10/24/2016)
djj (10/24/2016)
Revenant (10/24/2016)
Ed Wagner (10/24/2016)
Grumpy DBA (10/24/2016)
Kaye Cahs (10/24/2016)
SausageFest
October
Halloween
Movie
Theater
Popcorn
Butter
Face
Book
October 24, 2016 at 11:59 am
Here are 2 options, depending on what you want. It's simulating a calendar table, but you might want to consider a full calendar table in your system to make some...
October 24, 2016 at 10:18 am
Do you need to include all dates? Or just the dates with bookings? The solution could be slightly different.
October 24, 2016 at 9:47 am
AIRWALKER-375999 (10/24/2016)
Thom A (10/24/2016)
October 24, 2016 at 9:02 am
A different approach, just for the sake of having options.
WITH CTE AS(
SELECT *, RANK() OVER( PARTITION BY col1, col2 ORDER BY col3) rnk
...
October 24, 2016 at 8:38 am
Here's an option. It seems a bit odd this requirement. The ORDER BY in the ROW_NUMBER function should probably be changed.
SELECT
MAX( CASE WHEN rn...
October 24, 2016 at 8:24 am
If you have the logic for today's age, you have the problem solved. You just need to change the way you approach your solution. In six months, they'll be the...
October 24, 2016 at 8:14 am
There's no way to order the data as it is, so there's no way to ensure a consistent ordered result without hard coding values.
October 24, 2016 at 7:42 am
Jeff Moden (10/23/2016)
October 24, 2016 at 7:25 am
Chris Harshman (10/21/2016)
Talvin Singh (10/21/2016)
the first line are categories, which were created with case statements egcount(case when [order line] = 1 then 1 end) [1]
Maybe I'm missing something, I'd...
October 21, 2016 at 11:36 am
Viewing 15 posts - 1,996 through 2,010 (of 8,731 total)