Display the names of the employees

Hi all
I use oracle 10g. I want to know is - it possible to retrieve the names of employees that begins with the line 'A' tilll 'J '.

for ex, I need the o/p as
ENAME
----------
ADAMS
ALLEN
BLAKE
CLARK
FORD
JAMES
JONES
display of employees in alphabetical order 'A' to 'J '.

I tried with the following query,
select ename from emp where ename between 'A%' and 'J%';

ENAME
----------
BLAKE
CLARK
ALLEN
FORD
ADAMS
But it does not show me JONES employees and the request for JAMES.what that we can use to achieve this result.


Regarding
Vids

vidusnat wrote:
Hi all
I use oracle 10g. I want to know is - it possible to retrieve the names of employees that begins with the line 'A' tilll 'J '.

for ex, I need the o/p as

ENAME
----------
ADAMS
ALLEN
BLAKE
CLARK
FORD
JAMES
JONES

display of employees in alphabetical order 'A' to 'J '.

I tried with the following query,

select ename from emp where ename between 'A%' and 'J%';

ENAME
----------
BLAKE
CLARK
ALLEN
FORD
ADAMS

But it does not show me JONES employees and the request for JAMES.what that we can use to achieve this result.

Regarding
Vids

Try this
Select ename emp where substr (ename, 1, 1) between 'A' and 'J '.
order by 1;

Tags: Database

Similar Questions

  • Display the folder Manager followed by employees who report to that Manager.

    Hi friends,

    After a long time, I guess.
    I need your ideas on how to perform the tasks below.

    I have 2 tables as below:

    (1) BISHOP
    mgr_id (pk), mgr_name

    (2) EMP
    emp_id (PK), ename, mgr_id (fk)

    mgr_id is the key referential in this case.

    Now, all I want is first display mgr_id, mgr_name and then display the employees to this Manager.
    MGR TABLE
    =========
    
    MGR_ID  MGR_NAME   
    ------  --------- 
      1      David       
      2      Ray    
    
    EMP TABLE
    =========
    
    EMP_ID  ENAME    MGR_ID
    ------  ------   ------
    1001     John      1
    1002     Nancy     1
    1003     Edward    2
    1004     Jack      2
    
    
    QUERY RESULTS
    =============
    
    TYPE       ID    NAME
    ----       ----  ------
    Manager     1    David
    Employee   1001  John
    Employee   1002  Nancy
    Manager     2    Ray
    Employee   1003  Edward
    Employee   1004  Jack
    Thanks in advance.
    -Raj

    Published by: Teku on April 20, 2009 12:04

    Hi, Raj,

    Do a UNION ALL operation to get the data from the two tables.
    Include additional columns for sorting: mgr_id (so a manager and those covered by the crèche will be separate) and another column (rnk, bleow) in order to ensure that the Manager will come first in each group.

    In SQL * Plus, you can use the COLUMN... NOPRINT to keep these additional columns to appear in reality.
    Otherwise, you can calculate the new columns in a subquery, like this:

    WITH  union_data  AS
    (
         SELECT       mgr_id     AS id
         ,       mgr_name     AS name
         ,       mgr_id
         ,       1          AS rnk
         FROM       mgr
         UNION ALL
         SELECT       emp_id     AS id
         ,       ename          AS name
         ,       mgr_id
         ,       2          AS rnk
         FROM       emp
    )
    SELECT       id
    ,       name
    FROM       union_data
    ORDER BY  mgr_id
    ,            rnk
    ,       id
    ;
    
  • Display the name of the Department and employees in this Department

    Hi all

    I want to display the name of the Department and employees in this Department in a single line. Can you please help me to do so.

    Oracle version : 9.2.0.8

    create table emp
    (varchar2 (100) number of ename, empno, dept_id number);

    create table dept
    (dept_id number, dept_name varchar2 (100));

    Start
    insert into emp values (100, 'Raghu', 10);
    insert into emp values (101, 'Nathalie', 10);
    insert into emp values (102, 'Sai', 10);
    insert into emp values (103, "Riquet", 20);
    insert into emp values (104, 'Radha', 20);
    insert into emp values (105, "Bika", 30);
    insert into emp values (106, 'Satish', 30);
    insert into emp values (107, 'Emma', 30);
    end;

    Start
    insert into dept values (10, 'Sales');
    insert into dept values (20, 'Marketing');
    insert into dept values (30, 'accounts');
    end;

    Expected results
    *********************
    dept_name employees
    -------------- ----------------------
    Sale of Raghu, Tedla, Sai
    Marketing Ramesh, Radha
    Accounts Bilodeau, Satish, James

    Thank you
    Rambeau
    select dept_name,
    max(sys_connect_by_path(ename,',')) employess
    from (select dept_name,ename,
          row_number() over(partition by emp.dept_id
          order by empno) r
          from emp,dept
          where emp.dept_id = dept.dept_id)
    start with r=1
    connect by prior r+1=r
           and prior dept_name=dept_name
    group by dept_name;
    
  • Why only a Yahoo Group displays the column group name?

    I belong to several Yahoo groups and get individual emails from 3 of them. They all worked well until May 8, 2014, when the Freex news group began to display only "[email protected]" in the column. It's always like that. I can't be sure it's a Yahoo problem, like the other groups I am a member of display the senders display name and e-mail address.
    The attachment is a snip of the CT showing how it was and how it has changed.
    Please tell us how to get back to the display names and addresses.

    locate this address in your address book, and then delete.

  • Why my download box displays the active download but then when it's done the box is empty, prior to that, it allows to keep the name/title of the download?

    My download box used to show me downloads completed... now it of just displays the progress of the download and then turns off?

    It allows to keep the title/name to download completed and I could click it to open instead of having to go out to my office to open the download...

    Date of arrival:

    • Tools > Options > privacy > Firefox will be: "Use the custom settings for history" > "Remember download history.
  • How to display the name of device to the file send via Bluetooth

    I get this Message:

    Receipt of file Conformation

    You want to receive a 00:13:70:69:95:84 file?

    My Question is how it can display the name of the device not the address of the device?

    Post edited by: hazzaa

    The same situation when I want to send pictures to cell phone on my laptop. I didn't find any option how to change.

    When I send photos from mobile to mobile phone laptop computer (device name) name is displayed. Try to check the properties of the external device. Maybe you will find way to change this.

  • Display the names of users available and selected user name

    Hello world!

    I'm building a custom LabVIEW TestStand for operator interface. I decided to use LabView controls and indicators instead of those provided by TestStand himself.

    Now... There are several tabs in the application window. At startup, the only active tab is the 'Login' one. In this tab, there are: a list box (in which I want to display all available user names) and a control of the chain (in which I want to display the user name that was selected by clicking in the drop-down list).

    Is someone can help me this?

    OK, I solved it! See the attached vi.

  • Display the column names in a table

    Stupid question time...

    How to display the names of columns in a table on the front panel? I thought by right clicking on the table would give me a selection to view.

    Hi Eric,.

    Right-click the table and select "Show column headers" visible elements "->":

  • How to display the name of my refnum on the front?

    I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.

    How to display the name of the file (including the path) on the front panel once the user has entered it?

    Michael

    Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.

  • My computer does not display the correct names of my hard drives, but because of disk management.

    original title: Hard Drive rename BUG

    I have a problem with the change of name of the hard disk.

    Disk Management displays the names for each partition, but when I open my computer C only a specific name, the rest of the partitions are named local disk and if I try to change it by right clicking Rename or properties and change volume name, after clicking on ok nothing happens, but more funny that I go to disk management and I can see the change in the name of the partition , but Explorer keeps showing local disk, drives me crazy.

    I am running windows 7 Pro.

    Someone please provide solution.

    Thank you.

    Hello

    Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    (http://windows.microsoft.com/en-GB/windows7/Back-up-the-registry) How to back up and restore the registry in Windows

    You can try these:

    a. open the Start Menu.

    (b) in the area of the white line (search), type regedit and press ENTER.

    c. click on the button continue in the UAC prompt.

    d. in regedit, go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer

    e. in the left pane, right-click on explorer.exe and click on New and key.

    f. type DriveIcons and press ENTER.

    g. in the left pane, click with the right button on DriveIcons and click on New and key.

    h. type the drive letter (EX: E) you want to change the route name and press ENTER.

    i. in the left pane, right-click on the drive letter (EX: E) and click on New and key.

    j. type DefaultLabel and press ENTER.

    k. in the right pane, click with the right button on (default) and click on change.

    To change the name of the reader - l.

    i. enter a name (Ex: My DVD), and then click OK.

    II. go to step n.

    Mr.. to restore the default drive name-

    i. leave it blank, and then click OK.

    II. go to step n.

    n. Repeat steps i to m if you want to add another drive letter icon to change.

    o. close regedit.

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Change the path where Windows search displays directory name

    Dear Sir

    I'm regularly using Windows search and I am facing some problems with the way the folder names appear.

    Imagine the following situation: I have three files, called text.txt, located in the following directories:

    D:\Folder_A\SubFolder_1

    D:\Folder_A\SubFolder_2

    D:\Folder_B\SubFolder_1

    When I launch a Windows search to find these files, I will get answers in the column 'file ':

    SubFolder_1 (D:\Folder_A)

    SubFolder_2 (D:\Folder_A)

    SubFolder_1 (D:\Folder_B)

    When I then click on the "Folder" column header to sort, I will get following result:

    SubFolder_1 (D:\Folder_A)

    SubFolder_1 (D:\Folder_B)

    SubFolder_2 (D:\Folder_A)

    This way of sorting mix main directories "D:\Folder_A" and "D:\Folder_B", which is false.

    This problem is due to the fact that the names of directories are not displayed as '' but as ' ()", which is not what I want.

    Is it possible (as a registry key) where I can configure my Windows 7 to display the names of directory as '' (as in previous versions of Windows)?

    Thank you

    Right-click a column header and choose "More"... "since the menu drop down.

    In the choice, find the path and turn it on.  When you click OK, the new column 'path' will be the one you like (showing the full path).  Example:

  • Z10 Z10 ILA BlackBerry does not display the name of the caller of the stored contacts.

    My Z10 does not display the names of the callers stored in contacts with a prefix or area code. For example, an incoming call on contact JOHN SMITH, whose number is stored as + 44 7976 667668 shows not her name but just 07976 667668, but if the number of JOHN SMITH has been stored as 07976 667668 (without + 44) then the incoming call appears her name. Does anyone know how to remedy this? or is it a design error / omission by RIM?

    This is a known issue with the software currently.  Please visit KB33685

  • Windows Live Mail Inbox does not display the sender first name

    In the Inbox Windows Live Mail how can I change the order of the shipper and the Re?  I have two new computers and two new Windows Live Mail.  On one, the command is correct.  Name of the sender is first in bold and easy to see.  On the second computer the Re is the first, in bold.  Name of the sender is second, smaller in size and hard to see.  I want to first see the sender name.  I have Windows 7 Home premium 64-bit for both computers.

    You have the pane of folders on the left, the list of messages in the Center and the reading pane on the right.

    You see the inconvenience of having the reading pane on the right.  The list of messages is not wide enough to display the number of columns.

    You can display the reading pane on the bottom.  View tab, reading pane,... Bottom

    At the top of the list of messages, right-click a column header, columns...

  • Computer can not display the name of the network to which it is connected.

    Hello, I'm able to get a stable access to the internet with my computer, but instead of display the name of the network, I am connected to (for reference, it is DGVB1), it says "Network 2" of what I have been able to deduce the Korean. This is why I can't connect to this computer in my homegroup?

    Clueless,

    Brian

    It was surprising, but I got the computer change the name of "Network 2" to "DGVB1," my SSID, which, for some reason, let it be detected and therefore be welcomed into the group. Weird, but at least it worked. The next issue, I'll try and work on East printers, which I believe that Norton 360 can be bothered to. in any case, thanks for the help :DD

  • Created using Microsoft keyboard layout creator of keyboard, but after installation does not display the name of my keyboard on language bar on the taskbar

    I created my keyboard with "Microsoft keyboard layout creator v.14" and I create the package. It works fine but does not display the name of my keyboard on the language bar on the taskbar

    Hello

    Follow these steps and check if that helps.

    (a) click Start and type area and the language in the search bar and press to enter.

    (b) go to keyboards and languages tab.

    (c) click on change keyboards.

    (d) now, click Add.

    (e) now under any input language, you have chosen who find and choose keyboard.

    (f) ensure that all options are listed.

    (g) if there is a check mark in the United States remove it and place a check next to the language and click Ok.

    (h) now you can check cross if the preview shows you the correct layout.

  • BlackBerry Tour 9630 smartphones does not display the name of the caller

    Hello

    I have a Tour 9630, version sw 5.0.0.732.  When the phone rings, it does not display the name of the caller, their telephone number, although this number is in my address book.  Once I answer the call, the name will be displayed.

    Naturally, I would like to know who is the caller before I answer!  :-)

    I found a few messages, ask something similar, although for different model phones.  Some of them suggest that I have to disable protection for the content... but I can't find it in the options.  Even in the User Guide, it contains instructions (go to Options > Security Options > General settings... but there is no "General settings" on my phone.)

    If anyone knows how to solve this problem, I would be very grateful!

    Kind regards

    Options > Security > encryption > include contacts.

    There could be other solutions... Try these:

    1. make sure that you set your own country code to the Phone Dialer screen > Options > smart dialing.
    Set your country code in this format: "+ xx" where xx = country code. Some countries have two or three-digit country Codes. Do not place not the '+' in the entrance of your contact.
    * In the United States, the value of this country as '+ 1' Code and place your local area code in the appropriate box (this normally the default setting in a new BB).

    2. in the same place, change the length of National number for the number of digits corresponding to your country (since some countries have less than 10 as that set by default in the BB). Check out the total numbers, less country code. Do not place not the '+' in the entrance of your contact.
    * For example, some countries have a total number to 8 (more than 3 for the country code). You must enter '8 '.

Maybe you are looking for

  • HP LaserJet M125nw: HP LaserJet M125nw - EPrint connection problem

    Hello. 3 days ago, I bought a HP laserjet m125nw. Printer is very good! It has good scan and it prints fine. Drivers installation is very easy and fast. But my problem is in eprint. To connect the printer to the web, I use lan. I wanted to turn on we

  • How can I get rid of the blocker on pogo?

    every time I win extra points or a new badge on pogo, I have a Blocker on the game, I click ok, in the hope that I had the badge or points, this pop-up blocker has three steps that pogo had or has, I got three steps sytem ok, but I still the blocker

  • XPS 8900 and Samsung 950 PRO Boot sequence problem

    I have a 8900 XPS with Windows 10. I have a Samsung NVMe 950 PRO SSD installed using a x 4 PCIe3.0 NIC - to-M.2 installed in PCIe SLOT on the XPS 8900 motherboard 3. I used Samsung cloning software to clone the OEM 1 TB HDD (immediately after you set

  • 950 cartridge save & reinstall?

    How can I register for later use a cartridge HP 950 newly installed Officejet 8100 Pro who immediately had a failure of the print head & had to be replaced.  I have a new 8100, but had to use the cartridges 'install' to set up. Do not want to throw o

  • Issue of XMLEXISTS

    Hi friends,I am trying to run under query and get the syntax, kindly help.Details of DB-Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit ProductionPL/SQL Release 11.2.0.4.0 - ProductionCORE Production 11.2.0.4.0AMT for Linux: Versi