all groups > sql server programming > august 2006 > threads for sunday august 27
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Subtracting one SELECT COUNT() from another SELCT COUNT() on same
Posted by a at 8/27/2006 9:32:04 PM
I hope this is the correct place to post this.
I'm fairly inexperienced at SQL and I'm not even sure what to call this
query.
I have multiple records for each DateFiled
and some of the entries have a value in the FormXML column
but some entries in the FormXML column are NULL.
I'd li... more >>
SP for poll table
Posted by Arjen at 8/27/2006 6:48:50 PM
Hi,
This is my poll table:
CREATE TABLE [dbo].[Poll](
[Id] [int] NOT NULL,
[Statement] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL,
[Answer1] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL,
[Score1] [int] NULL,
[Answer2] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL,
[Sc... more >>
Why does this query work but that one does not
Posted by dbuchanan at 8/27/2006 7:28:20 AM
Why does this query work;
SELECT e1.emp_no, e1.emp_lname, e1.domicile, d1.location
FROM employee_enh e1 JOIN employee_enh e2
ON e1.domicile = e2.domicile
JOIN department d1 JOIN department d2
ON d1.location = d2.location
ON e1.dept_no = d1.dept_no
WHERE e1.emp_no <> e2.emp_no
but this on... more >>
Update for table without Primary key
Posted by Joy at 8/27/2006 5:20:02 AM
Hi,
I am faced with a situation where i need to update a table but this table
doesn't have a primary key.
How do i do that?
regards,
Joy... more >>
How to build Hexa stream (0x151C2F...) to insert to Image type column?
Posted by pedestrian via SQLMonster.com at 8/27/2006 12:14:22 AM
I'm using Northwind.dbo.Employees table. For the Photo (Image type) column,
a visit to instnwnd.sql (Northwind database source statements) reveal the
following:
INSERT Employees (EmployeeID, LastName, FirstName, ... , Photo, ...)
VALUES (1,'Davolio','Nancy', 0x151C2F0FFFEFF (***very long hexa... more >>
Query runs forever...
Posted by broy NO[at]SPAM omegasoftwareinc.com at 8/27/2006 12:02:40 AM
I have the query shown at the end of this post. I have run this query
(actually a VIEW is based on it) many times before. However, for some
reason, all of a sudden, it is taking forever to run (i.e. I haven't
been able to wait long enough for it to finish). It used to run in a
second or two tops... more >>
rename SELECT *
Posted by Trapulo at 8/27/2006 12:00:00 AM
I there any way I can "rename" fields returned by a select *? I need that
all fields will have a same prefix.
For example, if table has fields ID, NAME, SURNAME, I wat to run some as
SELECT * FROM TABLE and retrieve a result with the fields PREF_ID,
PREF_NAME, PREF_SURNAME, without to enume... more >>
Badly performing queue processing proc
Posted by Gyruss at 8/27/2006 12:00:00 AM
Hi,
I would like some advice on improving a badly performing stored proc takes a
record from a buffer table, calls a stored proc, then deletes the record .
Basically, it's a priority queue implemented in TSQL.
Its two problems are:
(a) It slows down to a crawl when there are more than abo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|