Viewing 15 posts - 2,461 through 2,475 (of 10,144 total)
Steve Jones - SSC Editor (6/9/2015)
Eirikur Eiriksson (6/4/2015)
Should be as simple as
..TOP(1)...
WHERE POST.VISIBLE = TRUE;
😎
Nothing is ever simple, and the queries that do this potentially slow way down with...
June 9, 2015 at 9:26 am
tstagliano (6/8/2015)
June 9, 2015 at 7:45 am
@jeff, please can you amend your sample data set so that it contains each of the conditions you describe? Thanks. Then run this and have a look at the results....
June 9, 2015 at 7:04 am
Barcelona10 (6/8/2015)
...Col1 will have value that application will generate(id)....
SQL Server has the IDENTITY attribute and Sequences for this - why reinvent the wheel?
June 9, 2015 at 5:22 am
SandyTucker (6/6/2015)
Thank you so much both of you, I can't...
June 9, 2015 at 4:55 am
This is a slightly different take on Dwain's method. I'd guess they perform about the same.
WITH SampleData (NAME, D1, D2, D3, D31) AS
(
SELECT 'X1','9H','30M',NULL,'10M'
...
June 8, 2015 at 7:38 am
crookj (6/5/2015)
Ed Wagner (6/5/2015)
djj (6/5/2015)
DonlSimpson (6/4/2015)
Ed Wagner (6/4/2015)
Revenant (6/4/2015)
Ed Wagner (6/4/2015)
djj (6/4/2015)
WoollyWorm
Hole
Security
Clearance
Headroom
Max
Min
nie mouse
June 5, 2015 at 6:36 am
spectra (6/4/2015)
My query works...
June 4, 2015 at 8:57 am
Dan121 (6/4/2015)
After running below query (AdventureWorks database). I get...
June 4, 2015 at 8:51 am
spectra (6/4/2015)
Dear @chrism-2@WorkI had
.....from student_dtl order by intDtlId desc)
did you miss this ?
I wanted to join with the latest record of every profile in this table.
In SQL...
June 4, 2015 at 8:50 am
CASE
June 4, 2015 at 8:26 am
Jason A. Long (6/4/2015)
ChrisM@Work (6/4/2015)
Jason A. Long (6/4/2015)
Edit... I didn't like the solution I posted...Solution to what? 😀
It was just a rewrite of the original code Sales.Customer code.
I didn't like...
June 4, 2015 at 8:15 am
spectra (6/4/2015)
select DU.kUserId, DU.kUserName , DU.email,DU.contactNo,SID.intDtlId,SID.cbFlag,SID.pcbt,G1.gName as gen1,G2.gName as gen2 from (select...
June 4, 2015 at 7:18 am
Jason A. Long (6/4/2015)
Edit... I didn't like the solution I posted...
Solution to what? 😀
June 4, 2015 at 7:06 am
mohanaprabhu.v (6/4/2015)
Chris any update?
ChrisM@Work (6/4/2015)
Sure. Start a new thread, and include the Actual Execution Plan as an attachment.
If you want all columns from your invoice table, your options for tuning...
June 4, 2015 at 5:13 am
Viewing 15 posts - 2,461 through 2,475 (of 10,144 total)