Viewing 15 posts - 451 through 465 (of 895 total)
Phil Parkin (7/23/2012)
Kingston Dhasian (7/23/2012)
I hope the below mentioned query will satisfy your request
DELETEordFROMOrders ord
LEFT OUTER JOINCustomers c
ONord.CustomerID = c.CustomerID
ANDc.FirstName = 'vikash'
WHEREc.CustomerID IS NULL
Edit: Edited the incorrect code
Not sure I...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 23, 2012 at 4:11 am
I hope the below mentioned query will satisfy your request
DELETEord
FROMOrders ord
LEFT OUTER JOINCustomers c
ONord.CustomerID = c.CustomerID
ANDc.FirstName = 'vikash'
WHEREc.CustomerID IS NULL
Edit: Edited the incorrect code
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 23, 2012 at 2:44 am
forsqlserver (7/23/2012)
In my case I want to delete those data which is not selecting in below join any Help..
DELETE ord FROM Orders ord INNER JOIN Customers c(nolock) ON ord.CustomerID...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 23, 2012 at 2:14 am
You cannot use a WHILE loop to solve this problem, use CROSS TABS instead
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 -...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 23, 2012 at 1:53 am
One of the articles that helped me when I was faced with a similar issue
http://www.simple-talk.com/sql/database-administration/partitioned-tables-in-sql-server-2005/
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 5:42 am
raghuldrag (7/20/2012)
its very urgent any one can help me .....
Sorry. If its really that urgent, you would not have wasted time by cross posting again and again.
Did you read the...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 3:58 am
This is what I got from Books Online
When a parameter of the function has a default value, the keyword DEFAULT must be specified when the function is called to retrieve...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 3:22 am
The below article by Wayne Sheffield might be of help to you
Comparing Table Variables with Temporary Tables
http://www.sqlservercentral.com/articles/Temporary+Tables/66720/
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 12:27 am
raghuldrag (7/20/2012)
i m workin in server 2000
In that case, please post your query in appropriate forum
There is a separate forum for SQL Server 7, 2000
Also note that people helping you...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 12:23 am
I think you are talking about the computed column in SQL Server
You cannot achieve the desired result using computed columns
If trigger is not applicable, then there is only one option
Step...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 12:13 am
raghuldrag (7/19/2012)
hi Kingston,I 'm currently working on server 2000,so that pivot won't allow in that version,is any other possibiliies there ah???
In that case CROSS TABS is probably...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2012 at 12:01 am
The below articles might also help you to get started
Finding the Causes of Poor Performance in SQL Server, Part 1
Finding the causes of poor performance in SQL Server, Part 2
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2012 at 11:56 pm
raghuldrag (7/19/2012)
i got the answer finally
select account_no,
sum(case when trans ='Cr' then amount else 0 end) "Credit",
sum(case when trans ='Dr' then amount else 0...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2012 at 5:20 am
Please provide DDL of the tables involved, some sample data and expected results
If you don't know how to do this, check the link in my signature
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2012 at 1:45 am
Can you also provide us the expected results based on your sample data?
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 18, 2012 at 8:25 am
Viewing 15 posts - 451 through 465 (of 895 total)