Question

In: Computer Science

How to display in SQL Server, for example, all the author First Names are FIVE LETTERS...

How to display in SQL Server, for example, all the author First Names are FIVE LETTERS LONG if I have the Author Table.

I used the WHERE LENGTH ua_fname=5  

This is not returning names with 5 letters. Can someone please suggest to me the correct one?

Solutions

Expert Solution

Proof from my sample database;

​​​​​​length()


Related Solutions

Write a program that will read a line of text. Display all the letters that occure...
Write a program that will read a line of text. Display all the letters that occure in the text, one per line and in alphabetical order, along with the number of times each letter occurs in the text. Use an array of base type int of length 26, so that the element at index 0 contains the number of a’s, the element at index 1 contains the number of b’s, and so forth, Alloow both upperCase and lower Case. Define...
When all of the entries are valid, display an account number that shows first 3 digits of the telephone number and first two letters of the last name.
When all of the entries are valid, display an account number that shows first 3 digits of the telephone number and first two letters of the last name. using name John Smith phone number 1234567893 Using net beans take the first two letters from smith and first 3 numbers from the phone number and combine them to one line like this sm123.
Write SQL queries below for each of the following: List the names and cities of all...
Write SQL queries below for each of the following: List the names and cities of all customers List the different states the vendors come from (unique values only, no duplicates) Find the number of customers in California List product names and category descriptions for all products supplied by vendor Proformance List names of all employees who have sold to customer Rachel Patterson
What is a deadlock in SQL Server transaction processing? Are they preventable, if so how?
What is a deadlock in SQL Server transaction processing? Are they preventable, if so how?
SQL FORMAT (11-13 are completed and correct) -- 11. what are the names of all students...
SQL FORMAT (11-13 are completed and correct) -- 11. what are the names of all students who have taken some course? Don't show duplicates. select distinct(name) from student where tot_cred > 0; -- 12. what are the names of departments that offer 4-credit courses? Don't list duplicates. select distinct(dept_name) from course where credits=4; -- 13. What are the names and IDs of all students who have received an A in a computer science class? select distinct(name), id from student natural...
List the names of five parts of your first line of defense IN DETAIL.
List the names of five parts of your first line of defense IN DETAIL.
Give pseudocode for a recursive function that sorts all letters in a string. For example, the...
Give pseudocode for a recursive function that sorts all letters in a string. For example, the string "goodbye" would be sorted into "bdegooy". Java
Give pseudocode for a recursive function that sorts all letters in a string. For example, the...
Give pseudocode for a recursive function that sorts all letters in a string. For example, the string "goodbye" would be sorted into "bdegooy". Python
How do I use ASCII code to generate and display two random letters that are one...
How do I use ASCII code to generate and display two random letters that are one lowercase and one uppercase in C++? Please give me an example.  
Need the mongodb queuries translated into sql. All files are From stocks except the first is...
Need the mongodb queuries translated into sql. All files are From stocks except the first is from zips. Will give thumbs up! db.zips.aggregate([ {$match: {state: "IL"}}, {$group: {_id: "$city", totalzips: {$sum: 1}}}, {$match: {totalzips: {$gte: 3}}}, {$sort: {totalzips: -1}} ]) db.stocks.aggregate([ {$match: {"Sector": "Information Technology", "Dividend Yield": {$gt: 0}}}, {$project: {_id: 0, Name: 1}} ]) db.stocks.aggregate([ {$match: {Sector: "Health Care"}}, {$sort: {"Earnings/Share": -1}}, {$limit: 10}, {$project: {_id: 0, Name: 1, "Earnings/Share": 1}} ]) db.stocks.aggregate([ {$match: {Sector: "Health Care"}}, {$group: {_id:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT