Skip to content

Can’t extract string from database sql

My aim is to test if the user and password inserted, existed in Table1. However, if I typed (pink,floyd) which exists in the database count still null and it appears the message “user doesn’t exist”. Here’s my database : Answer It turns that the stocked user and pass parameters in Tabl…

Order by case insensitive in oracle

I want to order a following text in following order but, after trying the following query it is not working. values to order is “A”, “B”, “Y”, “Z”, “a”, “b”, “y”, “z”. Expected result “ZzYyBbAa” …

How to retrieve half of records from a table – Oracle 11g

How can i retrieve (select) half of records from a table, for example, a table with 1000 rows, retrieve 500 (50%) from the table. (in this case i can use rownum because we know the exact quantity of rows (1000) – select * from table where rownum <= 500), but i have to count every table to achieve the…