Click here to Skip to main content
11,414,994 members (64,734 online)
   

Database

 
GeneralRe: Dual Primary Key? Pin
Eddy Vluggen21-Feb-13 9:32
mvpEddy Vluggen21-Feb-13 9:32 
GeneralRe: Dual Primary Key? Pin
Mycroft Holmes21-Feb-13 13:08
memberMycroft Holmes21-Feb-13 13:08 
GeneralRe: Dual Primary Key? Pin
PIEBALDconsult21-Feb-13 19:14
memberPIEBALDconsult21-Feb-13 19:14 
GeneralRe: Dual Primary Key? Pin
Eddy Vluggen21-Feb-13 23:42
mvpEddy Vluggen21-Feb-13 23:42 
Questionjdbc Pin
Durgesh1704r15-Feb-13 21:24
memberDurgesh1704r15-Feb-13 21:24 
AnswerRe: jdbc Pin
Richard MacCutchan15-Feb-13 23:31
mvpRichard MacCutchan15-Feb-13 23:31 
AnswerRe: jdbc Pin
Mycroft Holmes16-Feb-13 16:21
memberMycroft Holmes16-Feb-13 16:21 
QuestionOlder generation SQL syntax - Oracle Pin
vanikanc13-Feb-13 3:37
membervanikanc13-Feb-13 3:37 
AnswerRe: Older generation SQL syntax - Oracle Pin
Jörgen Andersson13-Feb-13 11:30
memberJörgen Andersson13-Feb-13 11:30 
GeneralRe: Older generation SQL syntax - Oracle Pin
vanikanc13-Feb-13 11:37
membervanikanc13-Feb-13 11:37 
AnswerRe: Older generation SQL syntax - Oracle Pin
Shameel15-Feb-13 5:17
memberShameel15-Feb-13 5:17 
QuestionHaving a bad SQL day Pin
TheComputerMan13-Feb-13 0:40
memberTheComputerMan13-Feb-13 0:40 
AnswerRe: Having a bad SQL day Pin
Jörgen Andersson13-Feb-13 1:20
memberJörgen Andersson13-Feb-13 1:20 
GeneralRe: Having a bad SQL day Pin
TheComputerMan13-Feb-13 1:32
memberTheComputerMan13-Feb-13 1:32 
Ah yes. My bad

SELECT quakeid, latitude, longitude, (6371 * acos(cos(radians(37)) * cos(radians(latitude)) * cos(radians(longitude) - radians(-122)) + sin(radians(37)) * sin(radians(latitude)))) 
FROM tblUSGSData 
GROUP BY quakeid, latitude, longitude
HAVING (6371 * acos(cos(radians(37)) * cos(radians(latitude)) * cos(radians(longitude) - radians(-122)) + sin(radians(37)) * sin(radians(latitude)))) <= 50

works - at least does not produce an error. Not sure about the working bit but that is another story.

Many thanks.
GeneralRe: Having a bad SQL day [modified] Pin
Jörgen Andersson13-Feb-13 1:40
memberJörgen Andersson13-Feb-13 1:40 
GeneralRe: Having a bad SQL day Pin
Bernhard Hiller13-Feb-13 4:24
memberBernhard Hiller13-Feb-13 4:24 
GeneralRe: Having a bad SQL day Pin
TheComputerMan13-Feb-13 4:33
memberTheComputerMan13-Feb-13 4:33 
AnswerRe: Having a bad SQL day Pin
Shameel13-Feb-13 1:53
memberShameel13-Feb-13 1:53 
GeneralRe: Having a bad SQL day Pin
Jörgen Andersson13-Feb-13 1:56
memberJörgen Andersson13-Feb-13 1:56 
GeneralRe: Having a bad SQL day Pin
PIEBALDconsult13-Feb-13 5:01
memberPIEBALDconsult13-Feb-13 5:01 
GeneralRe: Having a bad SQL day Pin
Jörgen Andersson13-Feb-13 7:27
memberJörgen Andersson13-Feb-13 7:27 
QuestionWhat is Ado.net Pin
Himanshu Sharma 88812-Feb-13 20:20
memberHimanshu Sharma 88812-Feb-13 20:20 
AnswerRe: What is Ado.net Pin
Richard MacCutchan12-Feb-13 23:31
mvpRichard MacCutchan12-Feb-13 23:31 
GeneralRe: What is Ado.net Pin
Shameel13-Feb-13 1:44
memberShameel13-Feb-13 1:44 
GeneralRe: What is Ado.net Pin
Thomas Gabriel20-Feb-13 23:42
memberThomas Gabriel20-Feb-13 23:42 
AnswerRe: What is Ado.net Pin
Sandeep Mewara13-Feb-13 1:23
mvpSandeep Mewara13-Feb-13 1:23 
QuestionSQL 2008 Truncate vs Delete Pin
mrfalk12-Feb-13 7:47
membermrfalk12-Feb-13 7:47 
AnswerRe: SQL 2008 Truncate vs Delete Pin
Eddy Vluggen12-Feb-13 8:48
mvpEddy Vluggen12-Feb-13 8:48 
GeneralRe: SQL 2008 Truncate vs Delete Pin
mrfalk12-Feb-13 9:27
membermrfalk12-Feb-13 9:27 
GeneralRe: SQL 2008 Truncate vs Delete Pin
Eddy Vluggen12-Feb-13 9:36
mvpEddy Vluggen12-Feb-13 9:36 
GeneralRe: SQL 2008 Truncate vs Delete Pin
Khorshed Alam, Dhaka18-Feb-13 19:09
memberKhorshed Alam, Dhaka18-Feb-13 19:09 
AnswerRe: SQL 2008 Truncate vs Delete Pin
NickPace12-Feb-13 11:09
memberNickPace12-Feb-13 11:09 
AnswerRe: SQL 2008 Truncate vs Delete Pin
djj5513-Feb-13 4:59
memberdjj5513-Feb-13 4:59 
AnswerRe: SQL 2008 Truncate vs Delete Pin
gvprabu20-Feb-13 22:37
membergvprabu20-Feb-13 22:37 
QuestionSQL Server 2008 Pin
VishwaKL10-Feb-13 18:51
memberVishwaKL10-Feb-13 18:51 
AnswerRe: SQL Server 2008 Pin
Shameel10-Feb-13 23:33
memberShameel10-Feb-13 23:33 
AnswerRe: SQL Server 2008 Pin
jschell11-Feb-13 9:20
memberjschell11-Feb-13 9:20 
Questionupdate values in a table in single query Pin
nainakarri7-Feb-13 21:07
membernainakarri7-Feb-13 21:07 
AnswerRe: update values in a table in single query Pin
Mycroft Holmes7-Feb-13 22:00
memberMycroft Holmes7-Feb-13 22:00 
GeneralRe: update values in a table in single query Pin
Shameel10-Feb-13 23:38
memberShameel10-Feb-13 23:38 
GeneralRe: update values in a table in single query Pin
Mycroft Holmes11-Feb-13 14:30
memberMycroft Holmes11-Feb-13 14:30 
AnswerRe: update values in a table in single query Pin
Eddy Vluggen7-Feb-13 23:42
mvpEddy Vluggen7-Feb-13 23:42 
GeneralRe: update values in a table in single query Pin
gvprabu10-Feb-13 19:02
membergvprabu10-Feb-13 19:02 
AnswerRe: update values in a table in single query Pin
gvprabu20-Feb-13 22:43
membergvprabu20-Feb-13 22:43 
QuestionIs it possible to print a variable in stored procedure Pin
Deepthi.214567-Feb-13 20:45
memberDeepthi.214567-Feb-13 20:45 
AnswerRe: Is it possible to print a variable in stored procedure Pin
nainakarri7-Feb-13 21:22
membernainakarri7-Feb-13 21:22 
GeneralRe: Is it possible to print a variable in stored procedure Pin
vanikanc12-Feb-13 9:19
membervanikanc12-Feb-13 9:19 
QuestionVisual Studio 2005 Access 2010 Database Pin
Member 98194707-Feb-13 13:06
memberMember 98194707-Feb-13 13:06 
AnswerRe: Visual Studio 2005 Access 2010 Database Pin
Mycroft Holmes7-Feb-13 14:45
memberMycroft Holmes7-Feb-13 14:45 
QuestionSimulate transaction: non blocking insert / update Pin
Bob Stanneveld7-Feb-13 12:12
memberBob Stanneveld7-Feb-13 12:12 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 27 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid