If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Oracle search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-10, 11:34
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
Oracle search

good day all,
looking for some assistance and I know this is the right place to be. I am wondering if its possible that i create a search function for my database. i have a member table and i want the search function to retrieve the member details when the member name is entered. if this is possible..how do i go about doing this?? any assistance i receive will be appreciated.
thanks in advance
W.K
Reply With Quote
  #2 (permalink)  
Old 08-14-10, 12:21
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
>if this is possible..
Yes

>how do i go about doing this??
write SQL.

>any assistance i receive will be appreciated.
We do not have your tables or data so no assistance is possible at this time.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 08-14-10, 13:20
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
hey there thanks for your reply..what should post? the create and insert statement for the member table? or the actual data? i dont want to be waisting your time by sending irrelevant information. thanks
Reply With Quote
  #4 (permalink)  
Old 08-14-10, 13:34
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
How would an independent observer conclude the correct answer has been posted
or conclude from a variety of offered solutions which was the correct answer?
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #5 (permalink)  
Old 08-14-10, 13:59
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
am sorry but am a bit lost by your last post?? can u explain what you are referring to??
Reply With Quote
  #6 (permalink)  
Old 08-15-10, 04:47
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
Quote:
i want the search function to retrieve the member details when the member name is entered
The simplest way (in SQL*Plus) might look like this:
Code:
select *
from members_table
where member_name = '&member_name';
In Forms, you'd create a data block based on the "members_table" and execute query after entering member's name into the corresponding item.

In Reports, you'd use member's name as a parameter (which would be part of the WHERE clause).

In other tools, you'd probably do that *somehow* as well, but - which tool do you use?
Reply With Quote
  #7 (permalink)  
Old 08-15-10, 09:06
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
hey Littlefoot,
thanks for you reply. i will give your solution a try and keep you informed on the results. i am going to try it out via the form builder..thanks again..
Reply With Quote
  #8 (permalink)  
Old 08-15-10, 15:04
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
If this is going to be your first form, use a wizard - it will create a default, working form. Won't look very pretty, but will be fully functional - you'll be able to query, update and delete existing records, as well as add new ones.
Reply With Quote
  #9 (permalink)  
Old 08-17-10, 13:58
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
hey there littlefoot,
i have been trying out your solution and am kind of confused as to where exactly i should put the query syntax on the form i built..must i create some thing like a text item with a button to execute the query??..please help
Reply With Quote
  #10 (permalink)  
Old 08-18-10, 11:00
spragg80 spragg80 is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
am sorry but am a bit lost by your last post?? can u explain what you are referring to??
Reply With Quote
  #11 (permalink)  
Old 08-27-10, 15:08
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
@wild kayode: you don't have to code anything - just let the wizard do the job. It will create all you need to successfully run the form.
Reply With Quote
  #12 (permalink)  
Old 08-30-10, 14:38
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
hey guys..thanks for the assistance given ..it really help and i got through with what i was doing. i have another problem now..i build a website using dreamweaver and i want to create a registration form and have the information added to the oracle database. i have configured the ODBC data source administrator using microsoft ODBC for Oracle. created a new ASP Vb srcipt page in dreamweaver, added the database but i am not seeing any of the tables i have in my database am seeing a whole bunch on tables that have nothing to do with my database... PLEASE!!!!!!! can i get some assistance..i am really confused and i consider myself to be " STUCK"...any assistance will be greatly appreciated...Thanks in advance.
W.K
Reply With Quote
  #13 (permalink)  
Old 08-30-10, 15:37
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
You should only have visibility to table owned by the current schema.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #14 (permalink)  
Old 08-30-10, 16:07
wild kayode wild kayode is offline
Registered User
 
Join Date: Oct 2008
Posts: 33
thanks for your reply..but what exactly do u mean?
Reply With Quote
  #15 (permalink)  
Old 08-30-10, 16:24
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
Code:
SQL> connect oe/oe
Connected.
SQL> select  table_name from user_tables;

TABLE_NAME
------------------------------
PRODUCT_REF_LIST_NESTEDTAB
SUBCATEGORY_REF_LIST_NESTEDTAB
CUSTOMERS
PRODUCT_DESCRIPTIONS
PROMOTIONS
ORDER_ITEMS
PRODUCT_INFORMATION
ORDERS
INVENTORIES
WAREHOUSES

10 rows selected
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On