Skip to content
Advertisement

SQL Query for Search Page

I am working on a small project for an online databases course and i was wondering if you could help me out with a problem I am having. I have a web page that is searching a movie database and …

Is there a way to perform this inner join in sql?

I have a sql database with two tables. The first table is named Workers with columns: id, name and includes values: 1, Mark 2, David 3, Peter The second is named WorkingHours with: id, hours, date …

Using charindex to correct name with two commas

I need to write a SQL Query that updates a field with a proper version of their name. Currently, we store employees as Last Name, First Name, and will be implementing email variables so we can say “…

MySQL Order by id, unless the record has a parent_id

I’m using Laravel (and MySQL of course) to build a pages module, a page can have 1 parent This is my current data, and using order_by=”id” it’s also returned like this. +—-+———–+ | id | …

Advertisement