+ 1

Selecting Multiple Columns in SQL

I Have been solving the sololearn sql chalanges in the lessons the question was Select multiple columns from products table and here is what I tried so far but it didn't work is there something wrong inside my query: SELECT ProductName,ProductionDate, ExpirationDate FROM Products;

1st May 2021, 3:02 PM
shaalle
shaalle - avatar
17 Respuestas
+ 5
I can see that you are at this lesson: https://www.sololearn.com/learn/SQL/1852/ I am going to try now, will be back in 1 sec. It is case sensitive when comparing output. https://www.sololearn.com/post/1064943/?ref=app I'll write to SoloLearn to report this. Thanks for your question.
1st May 2021, 3:06 PM
Gordon
Gordon - avatar
+ 2
Abdalla Moha there is no error in your code . i am also facing the problem . We can't do code coaches of sql right now due to a bug.
1st May 2021, 3:09 PM
TOLUENE
TOLUENE - avatar
+ 1
Gordon you re welcome thanks for the reporting.
1st May 2021, 3:13 PM
shaalle
shaalle - avatar
+ 1
Same here. Same input as Abdalla. Getting a “No Input” error message - results returned in lowercase. Also getting the same error message for the end module exercise!
2nd May 2021, 4:08 PM
Shawn Blackman
Shawn Blackman - avatar
+ 1
You can use the InitCap() function. It worked for me. It’s a workaround until the bugs are squashed😀 https://oraclesql.in/initcap/
2nd May 2021, 4:20 PM
Shawn Blackman
Shawn Blackman - avatar
+ 1
Abdalla Moha yes it works: SELECT InitCap(ProductName) as ProductName , ProductionDate, ExpirationDate FROM Products
2nd May 2021, 5:17 PM
Jozef Šulej
Jozef Šulej - avatar
+ 1
No sir - it does! I used it to solve both the ‘Multiple Columns’ and ‘Cakes’ excersises in the Sololearn editor!
2nd May 2021, 5:17 PM
Shawn Blackman
Shawn Blackman - avatar
+ 1
The problem is still there on my side
3rd May 2021, 1:16 PM
Zool Jam Baq
Zool Jam Baq - avatar
0
Md Sayed thanks man i hope it will be fixed soon.
1st May 2021, 3:12 PM
shaalle
shaalle - avatar
0
Same problem here 👍
2nd May 2021, 11:20 AM
Jozef Šulej
Jozef Šulej - avatar
0
Shawn Blackman thanks man initcap function is not working inside sololearn editor I think it's for oracle not mysql sololearn uses mysql database.
2nd May 2021, 4:56 PM
shaalle
shaalle - avatar
0
Jozef Šulej👍🏾🍷
2nd May 2021, 5:19 PM
Shawn Blackman
Shawn Blackman - avatar
0
Jozef Šulej it worked for me at last thank you so much
2nd May 2021, 5:47 PM
shaalle
shaalle - avatar
0
Shawn Blackman i solved the 'Multiple Columns' now I'm heading to the 'Cakes' thanks for the help it means alot to me.
2nd May 2021, 5:49 PM
shaalle
shaalle - avatar
0
Abdalla Moha 👍🏾👍🏾👍🏾
2nd May 2021, 6:39 PM
Shawn Blackman
Shawn Blackman - avatar
0
Have you tried to do that? SELECT ProductName, ProductionDate, ExparitonDate FROM Products;
3rd May 2021, 1:14 AM
Furkan Acarşan
Furkan Acarşan - avatar
0
Control a
3rd May 2021, 11:08 AM
zxtychj
zxtychj - avatar