SQLite Exercise: Get the names of all the employees from employees table
Write a query to get the names (for example Ellen Abel, Sundar Ande etc.) of all the employees from employees table.
Sample table : employees
SQLite Code :
SELECT first_name || ' ' || last_name 'Employee Name'
FROM employees;
Output:
Employee Name ---------------- Steven King Neena Kochhar Lex De Haan Alexander Hunold Bruce Ernst David Austin Valli Pataballa Diana Lorentz Nancy Greenberg Daniel Faviet John Chen Ismael Sciarra Jose Manuel Urman Luis Popp Den Raphaely Alexander Khoo Shelli Baida Sigal Tobias Guy Himuro Karen Colmenares Matthew Weiss Adam Fripp Payam Kaufling Shanta Vollman Kevin Mourgos Julia Nayer Irene Mikkilineni James Landry Steven Markle Laura Bissot Mozhe Atkinson James Marlow TJ Olson Jason Mallin Michael Rogers Ki Gee Hazel Philtanker Renske Ladwig Stephen Stiles John Seo Joshua Patel Trenna Rajs Curtis Davies Randall Matos Peter Vargas John Russell Karen Partners Alberto Errazuriz Gerald Cambrault Eleni Zlotkey Peter Tucker David Bernstein Peter Hall Christopher Olsen Nanette Cambrault Oliver Tuvault Janette King Patrick Sully Allan McEwen Lindsey Smith Louise Doran Sarath Sewall Clara Vishney Danielle Greene Mattea Marvins David Lee Sundar Ande Amit Banda Lisa Ozer Harrison Bloom Tayler Fox William Smith Elizabeth Bates Sundita Kumar Ellen Abel Alyssa Hutton Jonathon Taylor Jack Livingston Kimberely Grant Charles Johnson Winston Taylor Jean Fleaur Martha Sullivan Girard Geoni Nandita Sarchand Alexis Bull Julia Dellinger Anthony Cabrio Kelly Chung Jennifer Dilly Timothy Gates Randall Perkins Sarah Bell Britney Everett Samuel McCain Vance Jones Alana Walsh Kevin Feeney Donald OConnell Douglas Grant Jennifer Whalen Michael Hartstein Pat Fay Susan Mavris Hermann Baer Shelley Higgins William Gietz
Practice SQLite Online
Model Database
Structure of 'hr' database :
Improve this sample solution and post your code through Disqus.
Previous: Write a query to calculate 171*214+625.
Next: Write a query to get first name from employees table after removing white spaces from both side.
What is the difficulty level of this exercise?
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework