all groups > sql server mseq > may 2005
Rename a primary key column
Posted by sql guy at 5/31/2005 6:04:02 PM
hi i am trying to rename a primary using sp_rename. but it keeps failing with
message that the column is involved in dependencies. but i have already
dropped all constraints on this table! any help please... more >>
Query Question
Posted by David at 5/30/2005 12:13:23 AM
Hi! what command should i include in the SELECT query statement so that i can
filter away the duplicate record(see only unique row)...eg by time. Thks!... more >>
Excluding weekend dates from calculated data pull
Posted by Wells, Carrie E at 5/25/2005 8:43:25 AM
I have a business need to display some date specific data to a selcect group
of users 3 bussiness days before everyone else is allowed to see it.
THere are many fields I will be displaying across many tables. The date I am
using is ONLY in the primary table (meaning I don't have to include or... more >>
hierarchy structure
Posted by CJ at 5/25/2005 2:23:02 AM
hello!
I have a hierarchy structure copied from excel to a table in databse SQL.
Here is what i have in SQL table:
Continent Country City
Europe
Norway
Oslo
Bergen
Trondheim
Sweden
Stockholm
Gotaborg
Denmark
Kopenhagen
Aalborg
Germany
Hamburg
Munche... more >>
RUSSIAN SQL PROBLEM
Posted by DavideR at 5/19/2005 8:10:05 AM
I USE SQL SEVER 2000
I HAVE A TABLE IN A DB CALLED "Trend_Velocità "
I HAVE A QUERY ON A ADO OBECT "SELECT * FROM Trend_Velocità " in a Vb program
IF THE DEFAULT VALUE OF LANGUAGE IS ENGLISH NO PROBLEM
If I set the default value to russian the vb instrucion give me the error :
invalid object na... more >>
Remove letters in column
Posted by DCR at 5/18/2005 4:28:01 PM
I have a column that have numbers & letters combined in a field. What sql
command would remove the letters only, not the numbers?
I have a table called “customer†and the column in that table is called
“customtext4â€. I want to change over 5000 records in this “customtext4†field
... more >>
Clearing tables
Posted by Chris Lieb at 5/18/2005 10:59:17 AM
Which is the more efficient way to clear the contents of a table:
DELETE FROM tableName
TRUNCATE TABLE tableName
Or DROP the table then create it again?
--
Chris Lieb
UPS CACH, Hodgekins, IL
Tech Support Group - Systems/Apps... more >>
query multi tables, count/sum 1 of the tables
Posted by LU at 5/18/2005 9:51:13 AM
I'm quering about 5 tables using inner join. On one of the tables i just
want to count or sum up the results. Here is the example I'm trying to get
working. When I add the SUM(Private.PrivateIDs) I get an error. Is
something like this possible?
SELECT Units.UnitServiceLine, Units.Un... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Working With Binary Data Types
Posted by Tom Glasser at 5/17/2005 7:10:04 AM
I am looking at a table, using Enterprise Manager, that has several fields
defined
as Binary. All I seem to be able to see is the literal "<Binary>" in these
fields.
How can I view the actual values in these fields? How do I do a selection
criteria on them?
Thanks,
Tom
... more >>
A tree of location and site names..
Posted by Rhonda Fischer at 5/13/2005 8:22:02 AM
Hello,
This is a tuff one not sure if it can be done with an SQL query, I'm
thinking along the lines of an inner join, but I'm not really sure.
I have a table that is used to refer to location_names as nodes and sites as
the leaf nodes it is the site names that I want to return based on a ... more >>
Set a dinamic varable in query
Posted by CJ at 5/13/2005 4:48:02 AM
Hello!
I wish to use a variable i a query that can change under execute.
Here are some of my rows, i wish to make the f3 colonne
F1 F2 F3(my new colonne)
10 text 10
null text 10
null tesxt 10
11 text 11
null tekxt 11... more >>
If Statement to determine WHERE condition in SQL Query
Posted by Rhonda Fischer at 5/12/2005 7:07:39 AM
Hello,
The @parameters that I am receiving into my SQL query in SQL Serer 2000
Reporting Services are based on user selection from a drop down combo box.
If the user selects a name it will return an integer. An alternative to
selecting a single name the user can select 'ALL' of which will re... more >>
HL7 to flat file
Posted by Greg at 5/5/2005 7:46:02 AM
Does anyone have logic to take an hl7 file format and create a flat file.
I am having a bit of difficulty..............
Any help would be a lifesaver....
Thanks
Greg
... more >>
TEXT Files
Posted by GW at 5/3/2005 4:57:02 AM
Hi,
FYI, all about SQL is new to me. I would appreciate it if someone could help
me on
the following :-
1) I have one text file containing 8 fields separated by pipes (|) and 1000
of rows
eg:-
Chang|Michael|acno1234566|03052005|154.26|1|0|655426.26
- Is it possible to impo... more >>
query problem
Posted by tw at 5/1/2005 12:00:00 AM
Hi,
I have a problem to run a query like this scenario:
i have players in a table who have scored in many matches and i want to take
the 5 latest.
The latest i want to multiply with 1.0 and then after with 0.8, 0.6, 0.4 and
finally 0.2.
playerid round score
1, 10, 122
1, 9, 123
1,... more >>
|