Viewing 15 posts - 61 through 75 (of 124 total)
Do you always need a unique value or just for certain situations? Short term you could possibly use a temp table in lieu of the view. Or how...
September 27, 2007 at 11:43 pm
SELECT empname
FROM edtl
GROUP BY empname, sal
HAVING sal < (SELECT AVG(sal) FROM edtl)
September 25, 2007 at 11:25 am
#Report has 145 records
TableA has:
- 10,254,648 records
- a clustered index on WorkOrders_ID
- a nonclustered index on ServiceEvents_Code
TableB has:
- 2,099,655 records
- a clustered index on ID
- a nonclustered index on ReturnDate
I...
September 21, 2007 at 4:54 pm
What do you mean by xp'x and @@severname? I thought you were looking for data types of specific columns. What is "docs?" ????
September 21, 2007 at 2:34 pm
Just turn this into a sproc, and use in the desired DB. This will work in Northwind
USE Northwind
GO
DECLARE @Table varchar(35),
@Column varchar(35)
SELECT @Table = 'Employees',
@Column = 'EmployeeID'
SELECT type_name(st.xtype)
FROM systypes st
JOIN syscolumns...
September 21, 2007 at 2:12 pm
12/02/2007 would never (without more) appear first when using TOP, regardless of the sort order.
September 19, 2007 at 9:16 am
Sam,
Here is a very basic example using an optional paramater. The parameter @title is given a default value so users do not have to pass in a value unless they...
September 19, 2007 at 8:53 am
Viewing 15 posts - 61 through 75 (of 124 total)