all groups > sql server programming > february 2004 > threads for sunday february 15
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
How to get a value from another column where MAX(field) = TRUE?
Posted by Sander at 2/15/2004 8:57:24 PM
Hi! I hope somebody has a faster solution for me!
Basicly I have a table containing:
client_id, orderdate, category, amount
I want to select the amount where MAX(orderdate) = true grouped by
year
I currently have:
SELECT
amount
FROM orders A
INNER JOIN
(SELECT
client_id,
... more >>
how to scramble data in a table
Posted by SND at 2/15/2004 7:37:02 PM
Does anyone have a neat way to scramble data in one table?
I have a Person table with fields (PersonID, LastName, FirstName,
MiddleName). PersonID is a sequential number from 1 - 1,000,000 and there
are NO gaps in the sequence. I need the last names to be scrambled with
last names and so for... more >>
error systax :156
Posted by Eselyn at 2/15/2004 6:08:06 PM
CREATE PROCEDURE dbo.updateadminpass
(
@adminname1 nvarchar(50) ,
@adminpass1 nvarchar(50)
)
As
UPDATE admin SET
adminpass = @adminpass1,
WHERE adminname = @adminpass1
GO
well here is my coding. I'm new learner in sql.Please tell
... more >>
create multiple tables
Posted by Paul at 2/15/2004 5:56:08 PM
What's a good way to create 7000 tables and fill them with data from existing text files?
I have 7000 text files with stock quote data in them and I'm considering writing a long sql script that creates the tables and inserts the data from the text files, if that's possible.
Is this the way to ... more >>
SELECT DISTINCT?
Posted by Jon at 2/15/2004 5:54:48 PM
Hi,
using sql server2000/win2003
2 tables
CategoryClicks
CategoryID int
UserID int
ClickDate datetime
CategoryName varchar
Category2
CatID int
ParentID int
CategoryName varchar
I want to join the 2 on CategoryClicks.CategoryID = Category2.ParentID and
pull up the 5 most recent (di... more >>
Logged Actions
Posted by Paul Ilacqua at 2/15/2004 5:29:41 PM
Is there a simple answer to what actvities trip up a database that needs
point in time recovery. I keep my BCP Bulk /copy actvities for off times
followed by a full backup. Will Select Into break my Tranasction Log Chain?
I use my own built log shipping from a 7.0 db to 2000. I backup up once... more >>
Alter table by adding new column with not null
Posted by jungewum NO[at]SPAM yahoo.com.au at 2/15/2004 5:23:56 PM
Hi,
I have an existing table Student and I want to add a new column
address2.
alter table Student add address2 char(80) not null;
I got the following error:
ALTER TABLE only allows columns to be added that can contain nulls
or have a DEFAULT definition specified. Column 'address2' can... more >>
Count Query help
Posted by Mike Barbone at 2/15/2004 2:37:41 PM
Hello,
I need to do a simple count query for a column, QColumn for each value in
the column. I know the basic, SELECT QColumn, Count(QColumn) FROM myTable
Group By QColumn will return what I'm looking for, with a normal column that
holds 1 value.
In this instance, QColumn is varchar(12) and... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
what is the value of a currency format column and....
Posted by Trint Smith at 2/15/2004 10:15:14 AM
can you change the format after you already have the column format in
there with data?
Thanks,
Trint
..Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Query
Posted by jen at 2/15/2004 9:01:38 AM
Hello Gurus.
I have data something Like this
seqnum job createddttm
1 100 01/01/2004
2 200 01/10/2004
3 300 01/15/2004
4 100 02/01/2004
I want the Distinct Latest(createddttm is max) Jobs
Result should be as fol... more >>
insert current datetime
Posted by Dmitri Shvetsov at 2/15/2004 1:52:03 AM
Hi,
Can somebody write a command to insert a new record with a current SERVER
datetime in a column? This column supposed to be a PK. Is it possible
without a SP?
Dmitri
... more >>
Help Primary Key violation
Posted by Andrea at 2/15/2004 12:56:02 AM
I'm trying to port access DB to Sql Server database.
With access I can insert several rows also if someone are present in the
destination table.
For example if I have 20 rows in the dest table and I want to insert 30 rows
from orig table to dest table, but 20 rows are present in the dest table, ... more >>
|