Viewing 15 posts - 271 through 285 (of 462 total)
u r welcome 🙂
BTW which query did you use out of those three which are there?
October 23, 2009 at 7:41 am
I think its exactly what is there here. Please have a look at this discussion,
http://www.sqlservercentral.com/Forums/Topic807524-149-1.aspx
October 23, 2009 at 6:42 am
I think thats different level of validation that you may want to put depending on your business needs/justification,
Declare @STR varchar(10)
SET @STR = 'ABCDEFG'
SELECT LEFT (@str,...
October 23, 2009 at 6:22 am
dbo.benyos (10/23/2009)
Just don't forget that besides good naming convention for your procedures, T-SQL itself has undergone a long way and is very different than 5 years before, so...
October 23, 2009 at 5:27 am
wazz (10/23/2009)
ah, what do you use, if anything, to prefix sps? i think i've seen sproc_ before. any suggestions? (i'll do some searching too.) tnx again.
In most of cases that...
October 23, 2009 at 2:53 am
Just for fun eh!
Isn't it a case of pivoting?
Test script and data:
drop table #t1
drop table #t2
drop table #t3
Create table #t1(col1 int, col2 varchar(10), col3 int)
Create table #t2(col1 int, col2 varchar(10),...
October 23, 2009 at 2:16 am
Sorry, I aint givin the complete solution. This I guess you would anyway have it. I am really interested to know how anyone will approach this other part of the...
October 22, 2009 at 9:38 am
Phil Parkin (10/21/2009)
October 22, 2009 at 7:58 am
Will this do?
Select * from T1
LEFT JOIN T2
ON T1.id = T2.id
Where T2.Id IS NULL
October 22, 2009 at 1:15 am
This is something what you would like to do, but its meaningless.
CREATE TABLE #tSTATUS (FLAG varchar(1))
INSERT INTO #tStatus VALUES ('Y')
INSERT INTO #tStatus VALUES ('Y')
INSERT INTO #tStatus VALUES ('Y')
INSERT INTO #tStatus...
October 22, 2009 at 1:03 am
Will this do??
DROP TABLE ORDERS
CREATE TABLE ORDERS(OrderNo int, OrderDate datetime, Cost int, PreviousCost int, NewCost int)
Delete from Orders
INSERT INTO ORDERS VALUES(1, '2009-09-19', 100,0,0)
INSERT INTO ORDERS VALUES(2, '2009-10-19', 200,0,0)
INSERT INTO ORDERS...
October 21, 2009 at 2:25 pm
Please dont think I am doubting/underestimating your sqlserver database understanding. Just wanted to know if you understand these things please?
1. First query returns the rows from softwareProduct table where product...
October 21, 2009 at 1:27 pm
nothin here, please move on. Some technical glitch!
October 21, 2009 at 1:25 pm
I think requirement is bit incomplete,
you have a orderdate column, What if there are multiple orders in the previous month and what if there are multiple records in the...
October 21, 2009 at 1:09 pm
Viewing 15 posts - 271 through 285 (of 462 total)