Click here to Skip to main content
15,506,209 members
Home / Discussions / Database
   

Database

 
GeneralRe: Replacing back-end MS-ACCESS with SQL SERVER Pin
Craig Robbins17-Aug-22 7:53
Craig Robbins17-Aug-22 7:53 
AnswerRe: Replacing back-end MS-ACCESS with SQL SERVER Pin
CHill6017-Aug-22 8:00
mveCHill6017-Aug-22 8:00 
GeneralRe: Replacing back-end MS-ACCESS with SQL SERVER Pin
Nick Katditsik17-Aug-22 20:46
Nick Katditsik17-Aug-22 20:46 
QuestionHow would you... (synchronization between 2 databases) Pin
Joan M6-Aug-22 8:18
professionalJoan M6-Aug-22 8:18 
AnswerRe: How would you... (synchronization between 2 databases) Pin
Gerry Schmitz6-Aug-22 9:06
mveGerry Schmitz6-Aug-22 9:06 
GeneralRe: How would you... (synchronization between 2 databases) Pin
Joan M6-Aug-22 13:08
professionalJoan M6-Aug-22 13:08 
AnswerRe: How would you... (synchronization between 2 databases) Pin
Mycroft Holmes6-Aug-22 13:48
professionalMycroft Holmes6-Aug-22 13:48 
Questionsql query problem Pin
pitwi28-Jul-22 0:06
pitwi28-Jul-22 0:06 
I have the following query in my own photo database:

select distinct left(Nr, 8) as Date, Ort from Fotos where Typ='D' order by left(Nr, 8) desc, Ort


Where Nr is a unique string with date + a hyphen + a sequential number in the form yyyymmdd-xxx. Ort is a string, the location of the photo.

This works fine so far and I get a list like this:

20220717    Lindabrunn, Symposion
20220717    Feistritzsattel 
20220717    Pernitz, Schärfthal
20220715    Mannswörth
20220715    Wienerbergteich
20220715    Zentralfriedhof
20220712    V
20220710    Himberg


But what I really want is the first Nr for a date and a location like this:

20220717-001    Lindabrunn, Symposion
20220717-045    Feistritzsattel
20220717-103    Pernitz, Schärfthal
20220715-001    Mannswörth
20220715-009    Wienerbergteich
20220715-033    Zentralfriedhof
20220712-001    V   
20220710-001    Himberg


Can someone help? Thanks
AnswerRe: sql query problem Pin
Richard Deeming28-Jul-22 0:54
mveRichard Deeming28-Jul-22 0:54 
GeneralRe: sql query problem Pin
jsc4217-Aug-22 7:20
professionaljsc4217-Aug-22 7:20 
GeneralRe: sql query problem Pin
Richard Deeming17-Aug-22 7:26
mveRichard Deeming17-Aug-22 7:26 
GeneralRe: sql query problem Pin
jsc4217-Aug-22 23:40
professionaljsc4217-Aug-22 23:40 
Question.sql script in c# Pin
Member 1373522830-Jun-22 3:15
Member 1373522830-Jun-22 3:15 
AnswerRe: .sql script in c# Pin
Dave Kreskowiak30-Jun-22 4:59
mveDave Kreskowiak30-Jun-22 4:59 
QuestionPivot works, but spread column values not as expected Pin
#realJSOP19-Jun-22 2:58
mva#realJSOP19-Jun-22 2:58 
AnswerRe: Pivot works, but spread column values not as expected Pin
Richard Deeming19-Jun-22 22:52
mveRichard Deeming19-Jun-22 22:52 
GeneralRe: Pivot works, but spread column values not as expected Pin
#realJSOP19-Jun-22 23:20
mva#realJSOP19-Jun-22 23:20 
GeneralRe: Pivot works, but spread column values not as expected Pin
Richard Deeming19-Jun-22 23:36
mveRichard Deeming19-Jun-22 23:36 
GeneralRe: Pivot works, but spread column values not as expected Pin
#realJSOP20-Jun-22 0:19
mva#realJSOP20-Jun-22 0:19 
QuestionDatabase design for a project Pin
Gopika Ravikumar16-Jun-22 7:35
Gopika Ravikumar16-Jun-22 7:35 
AnswerRe: Database design for a project Pin
Craig Robbins16-Jun-22 8:31
Craig Robbins16-Jun-22 8:31 
AnswerRe: Database design for a project Pin
Mycroft Holmes16-Jun-22 13:44
professionalMycroft Holmes16-Jun-22 13:44 
AnswerRe: Database design for a project Pin
Gopika Ravikumar30-Oct-22 5:38
Gopika Ravikumar30-Oct-22 5:38 
QuestionHow to get this result in oracle database? Pin
HowardCheng22-May-22 5:58
professionalHowardCheng22-May-22 5:58 
AnswerRe: How to get this result in oracle database? Pin
Mycroft Holmes22-May-22 14:18
professionalMycroft Holmes22-May-22 14:18 

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.