Skip to content
Advertisement

Tag: database

SQL – Join with keys separated by pipe

TABLE_A TABLE_B How can I join table A and B to get all those who helped in the cargo? Will I need to write a function? I did not develop the program. I’m creating a dashboard and need that info. Using ORACLE 11g DB CONCLUSION — SOLVED After a bit of research and help of friends I was able to

Retrieve Total Chapters in each books

I have got the database which has id,chapter_name,chapter_num,verse_num,verse_text,testament as columns. I would like to retrieve chapterName and the total number of chapters in each book. I’m using the following query to do so, Unfortunately, it lists a very big count of chapter names and duplicate chapter names as well. How can I fix this? This is the sample input id,chapter_name,chapter_num,verse_num,verse_text,testament

INSERT INTO a table comparing two other tables using Not EXISTS

I have 3 tables: Server_db_relation DatabaseList DatabaseList_Archive The goal is to compare table Server_db_relation and DatabaseList based on the values in column ServerName and DatabaseName. If the values do not exists in the table Server_db_relation, but do exist in DatabaseList, then it should insert the entire row from DatabaseList into DataList_Archive (those two tables are identical in structure). In addition,

Advertisement