Click here to Skip to main content
15,895,142 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using UDFs in a SELECT Pin
michanne4-Feb-04 3:02
michanne4-Feb-04 3:02 
GeneralRe: Using UDFs in a SELECT Pin
Colin Angus Mackay4-Feb-04 4:28
Colin Angus Mackay4-Feb-04 4:28 
GeneralRe: Using UDFs in a SELECT Pin
michanne4-Feb-04 8:38
michanne4-Feb-04 8:38 
GeneralRe: Using UDFs in a SELECT Pin
Mike Dimmick9-Feb-04 3:51
Mike Dimmick9-Feb-04 3:51 
Generaltabledef access using ADO.NET Pin
kcharney2-Feb-04 12:03
kcharney2-Feb-04 12:03 
GeneralProblems with Access and Odbc Pin
jan larsen1-Feb-04 23:18
jan larsen1-Feb-04 23:18 
Questionedit value from datagrid but can't update database-how? Pin
Member 5754691-Feb-04 15:42
Member 5754691-Feb-04 15:42 
GeneralMicrosoft SQL 2 tables alias GROUP BY questions Pin
Member 57510430-Jan-04 15:59
Member 57510430-Jan-04 15:59 
Hi, I got the following question.
I got 2 tables in Lets say A and B
Structures of the tables are:
"A" table "B" Table
OldName Number New_name Number Value Time

Time field in "B" table in following format "YYYY-MM-DD HH24:MI:SS"
So knowing the alias I can easily create a query:
select A.New_Name,A.Old_Name,B.Value,B.Time from A,B where A.Number = B.Number AND B.Time BETWEEN '2003-12-01' AND '2004-01-30' AND (A.New_Name like '%mw%' OR A.New_Name like '%mv%');
Everything worked so far. But, cause Value probe in "B" table happening every 3 minutes, and Name entries are about 10000 in the table,identified by '%mv" and '%mw', I simply cannot get some much data (imaging 60 days * 60min/3min * 24 * 10000 and you will get the magic number of rows. Tried to run it throught Database client or Vbscript ADO connections it is taking about 4 hours to complete. Cause I'm having 20 tables like that on 20 independent servers it is simply unacceptable for a time frame. So, we dicided instead of each minute to get an average for an each hour. I cannot get an average throught Vbscript (programmatically), cause it will not improve the database dump performance, I've to do it throught SQL. And here is the problem, I'm very familiar with MySQL logic and syntaksis, but this is my first time I'm querying Microsoft SQL server. Tried to construct the query - didn't work.
So result of my query should look like that
Time Name Value
01-30-04 00:00 abbmw 10
01-30-04 01:00 bbccmv 20
01-30-04 02:00 cccmvar 30
and so on.
Can somebody help me with this ?
Thank you very much.

Sincerely
vladfrenkel
GeneralRe: Microsoft SQL 2 tables alias GROUP BY questions Pin
Edbert P3-Feb-04 11:50
Edbert P3-Feb-04 11:50 
GeneralReading in an XML File into a DataSet Pin
Member 64401630-Jan-04 7:55
Member 64401630-Jan-04 7:55 
GeneralRe: Reading in an XML File into a DataSet Pin
Mazdak31-Jan-04 5:36
Mazdak31-Jan-04 5:36 
GeneralADO.NET,C#, and MS:Access Pin
Nick Jacobs30-Jan-04 5:38
Nick Jacobs30-Jan-04 5:38 
GeneralCDao MFC classes and a Access 97 DB Pin
Phil.Benson29-Jan-04 21:46
professionalPhil.Benson29-Jan-04 21:46 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Steve S10-Feb-04 6:27
Steve S10-Feb-04 6:27 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Phil.Benson10-Feb-04 20:27
professionalPhil.Benson10-Feb-04 20:27 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Phil.Benson11-Feb-04 1:40
professionalPhil.Benson11-Feb-04 1:40 
GeneralC++ and Database Pin
vin29-Jan-04 19:07
vin29-Jan-04 19:07 
GeneralRe: C++ and Database Pin
basementman30-Jan-04 10:30
basementman30-Jan-04 10:30 
Generalcalculate datacolumn Pin
Member 57546929-Jan-04 18:12
Member 57546929-Jan-04 18:12 
GeneralRe: calculate datacolumn Pin
-Dr_X-30-Jan-04 17:31
-Dr_X-30-Jan-04 17:31 
GeneralProblem of ADO Recordset Pin
Member 55036929-Jan-04 17:37
Member 55036929-Jan-04 17:37 
GeneralUsing List Control with ADO Pin
girl_lash29-Jan-04 16:59
girl_lash29-Jan-04 16:59 
GeneralRetrieving autonumber when inserting data in a table Pin
Anonymous29-Jan-04 9:10
Anonymous29-Jan-04 9:10 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Guillermo Rivero29-Jan-04 9:12
Guillermo Rivero29-Jan-04 9:12 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Anonymous30-Jan-04 23:53
Anonymous30-Jan-04 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.