Contenido del Curso
Introduction to SQL
Introduction to SQL
Challenge: Further Improving the Books Table
As one more improvement to the books_table
table, you can specify some default values to make the data entry process more efficient.
Swipe to show code editor
Your task is to write a query for creating a new books_table
table for the library that will include default values for certain columns. This ensures that if no value is provided during insertion, the system will use a predefined default value.
Set default values for the following columns:
genre
→'Unknown'
;pages
→0
;language
→'English'
;is_available
→TRUE
.
Solución
¡Gracias por tus comentarios!
Challenge: Further Improving the Books Table
As one more improvement to the books_table
table, you can specify some default values to make the data entry process more efficient.
Swipe to show code editor
Your task is to write a query for creating a new books_table
table for the library that will include default values for certain columns. This ensures that if no value is provided during insertion, the system will use a predefined default value.
Set default values for the following columns:
genre
→'Unknown'
;pages
→0
;language
→'English'
;is_available
→TRUE
.
Solución
¡Gracias por tus comentarios!