Skip to content

Database

Discussions on database access, SQL, and ADO

This category can be followed from the open social web via the handle database@forum.codeproject.com

17.1k Topics 61.8k Posts
  • Oracle Database

    database oracle tools tutorial
    2
    0 Votes
    2 Posts
    0 Views
    T
    Why not tools like Oracle SQL Developer[^] or Toad[^]? thatraja Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
  • 0 Votes
    9 Posts
    0 Views
    P
    Probably wouldn't help me, but maybe the OP. You'll never get very far if all you do is follow instructions.
  • Remove duplicate rows in multiple join query

    database help
    4
    0 Votes
    4 Posts
    0 Views
    M
    plz visit here this tutorial may be helpful to you. http://www.javatpoint.com/sql-delete-duplicate-rows[^]
  • Oracle Error

    database oracle help
    5
    0 Votes
    5 Posts
    0 Views
    U
    Cause: The archiver process received an error while trying to archive a redo log. If the problem is not resolved soon, the database will stop executing transactions. The most likely cause of this message is the destination device is out of space to store the redo log file. Action: Check the archiver trace file for a detailed description of the problem. Also, verify that the device specified in the initialization parameter archive_log_dest is set up properly for archiving.
  • Complex Query

    database question algorithms xml
    3
    0 Votes
    3 Posts
    1 Views
    realJSOPR
    Awesome hint - fingered it out. ".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
  • 0 Votes
    5 Posts
    0 Views
    J
    OK I can swap out the words like student on that I'll write one and post it to see how I did on it. Thanks!
  • Grouping Results by ElectionName

    help
    6
    0 Votes
    6 Posts
    0 Views
    S
    Ok, sorry for my stupidity but I thought this is a database forum. If it is, I am only trying to figure out how to get Total Count for each candidate, not formatting request.
  • how to insert data in foreign key using jsp

    java database html mysql com
    10
    0 Votes
    10 Posts
    1 Views
    M
    Faisal_Abdullah wrote: yes you are absolutly right, but how i can do it in oracle and mysql? Get a book, follow some examples, learn, no one here is going to do your work for you. Never underestimate the power of human stupidity RAH
  • 0 Votes
    6 Posts
    0 Views
    M
    One of the issues I have run across over time is in the data itself. If your source is a legacy system then there may be a crlf issue, it can be either 1 or 2 characters. They sometimes use weird row terminators as well. I would check if AS is the last field in a row and then pull the data into a string and check the length of the field. VS may well treat line feeds differently than SSIS. Never underestimate the power of human stupidity RAH
  • 0 Votes
    1 Posts
    5 Views
    No one has replied
  • Structure Database

    database testing beta-testing question lounge
    5
    0 Votes
    5 Posts
    0 Views
    J
    I doubt you can design a database that doesn't allow multiple users. You can certainly design/implement an application that uses a database which precludes that.
  • Group by (first letter)

    com help question
    3
    0 Votes
    3 Posts
    0 Views
    N
    thanks :-D nelsonpaixao@yahoo.com.br trying to help & get help
  • Get Result according to comma seperated sequence

    tutorial csharp database com
    2
    0 Votes
    2 Posts
    0 Views
    J
    Maybe not the answer you're looking for, but your table doesn't even conform to the first normal form. Normalize it, for example like this: CREATE TABLE MyTable ([fileid] int, [filesequence] int, [catid] int, [catsequence] int) ; INSERT INTO MyTable ([fileid], [filesequence], [catid], [catsequence]) VALUES (4, 1, 41, 2), (1, 2, 41, 2), (5, 3, 41, 2), (8, 4, 41, 2), (9, 5, 41, 2), (10, 6, 41, 2), (20, 7, 41, 2), (18, 1, 48, 9), (17, 2, 48, 9), (19, 3, 48, 9), (24, 4, 48, 9), (25, 5, 48, 9), (19, 1, 49, 10), (21, 2, 49, 10), (22, 3, 49, 10), (23, 4, 49, 10), (24, 5, 49, 10), (25, 6, 49, 10), (26, 7, 49, 10) ; Now you can Query it like this: select fileid from mytable group by fileid order by min(catsequence),min(filesequence) And the result will look like this: FILEID 4 1 5 8 9 10 20 18 19 17 24 25 21 22 23 26 It's easy enough to make that into a comma separated file if you would really need to. But that task actually belongs to another layer than the database. Wrong is evil and must be defeated. - Jeff Ello[^]
  • sum of datediff to many dates

    10
    0 Votes
    10 Posts
    0 Views
    J
    I will just say that this sort of exercise seldom ends well without business requirements. I am not going to analyze all possible interpretations but I will provide and example from your own data. 2013-10-17 2015-05-17 A business person asks you for how many years in that. All of the following are possible answers. - One. 2013-10 to 2014-10 is one year, but 2014-10 to 2015-05 isn't. - Zero. Because 2013-10 to 2014-10 is one year but it isn't 2014-10 yet - Three. 2013, 2014, 2015 = 3. - Two. 2013-10 to 2014-10 is one year, but 2014-10 to 2015-05 is partial, so round up to get 2. - Five. The dates are supposed to be based on the contract period not the annual service dates (which the above dates are.) - 17. Because the person that actually wants this wants a count of months covered.
  • get day wise records seperated by id

    database design
    3
    0 Votes
    3 Posts
    0 Views
    B
    Your GUI is written in C#, isn't it? So I'd suggest to do that extra calculation and formatting there.
  • query for monthly report

    database csharp mysql design
    3
    0 Votes
    3 Posts
    0 Views
    M
    thanks
  • to set foreign key or not to set?

    com performance question announcement
    8
    0 Votes
    8 Posts
    0 Views
    _
    You are welcome. .AK.
  • Ho to avoid Not In & In clause in my query

    database
    5
    0 Votes
    5 Posts
    0 Views
    M
    Im not sure, but compare not in the join will be the faster one, i heared like that :(
  • DSN

    database sql-server sysadmin question learning
    3
    0 Votes
    3 Posts
    0 Views
    M
    Yes, there is (was) even migration tool to help you upsize to a proper database (SQL Server). You then only need to change your connection string to point to the SQL Server database. Never underestimate the power of human stupidity RAH
  • how to convert an integer to days months years

    help tutorial
    10
    0 Votes
    10 Posts
    0 Views
    Kornfeld Eliyahu PeterK
    I see... In that case you can do something like this select sum(datediff(d, start,end)) from ... where ... I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)