473,796 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ordering mysql request by part of a key

I have a database of kennels. One page lists the kennels
alphabetically by kennel name.
I have a field for kennel name and an index with kennel name as
the only field.

Some of the kennels have the word "The" as the first word in the
name and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a
kennel name when ordering it or must I create a new field for the
ordering and remove the "The" from the kennel name for that field ?

bill
Dec 30 '06 #1
10 1482
bill wrote:
I have a database of kennels. One page lists the kennels alphabetically
by kennel name.
I have a field for kennel name and an index with kennel name as the only
field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering and
remove the "The" from the kennel name for that field ?

bill
comp.databases. mysql would be a much better place to ask this question.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Dec 30 '06 #2
Jerry Stuckle wrote:
bill wrote:
>I have a database of kennels. One page lists the kennels
alphabetical ly by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering
and remove the "The" from the kennel name for that field ?

bill

comp.databases. mysql would be a much better place to ask this question.
my isp does not supply this ng.

can someone point me to a portal that will allow me to access it ?

bill
Dec 30 '06 #3

bill wrote:
Jerry Stuckle wrote:
bill wrote:
I have a database of kennels. One page lists the kennels
alphabetically by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering
and remove the "The" from the kennel name for that field ?

bill
comp.databases. mysql would be a much better place to ask this question.
my isp does not supply this ng.
My earlier reply seems to have got lost:

SELECT kennel FROM kennels ORDER BY REPLACE(kennel, 'the','');
>
can someone point me to a portal that will allow me to access it ?

bill
Dec 30 '06 #4

bill wrote:
Jerry Stuckle wrote:
bill wrote:
I have a database of kennels. One page lists the kennels
alphabetically by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering
and remove the "The" from the kennel name for that field ?

bill
comp.databases. mysql would be a much better place to ask this question.
my isp does not supply this ng.
My earlier reply seems to have got lost:

SELECT kennel FROM kennels ORDER BY REPLACE(kennel, 'the ','');
>
can someone point me to a portal that will allow me to access it ?

bill
Dec 30 '06 #5
bill wrote:
Jerry Stuckle wrote:
>bill wrote:
>>I have a database of kennels. One page lists the kennels
alphabeticall y by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering
and remove the "The" from the kennel name for that field ?

bill


comp.databases .mysql would be a much better place to ask this question.
my isp does not supply this ng.

can someone point me to a portal that will allow me to access it ?

bill
1. Ask your ISP to carry it. I've found most are quite amiable to
adding groups at user's requests.

2. Google Groups (if you really must).

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Dec 30 '06 #6
strawberry wrote:
bill wrote:
>Jerry Stuckle wrote:
>>bill wrote:
I have a database of kennels. One page lists the kennels
alphabetical ly by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the name
and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a kennel
name when ordering it or must I create a new field for the ordering
and remove the "The" from the kennel name for that field ?

bill
comp.database s.mysql would be a much better place to ask this question.
my isp does not supply this ng.

My earlier reply seems to have got lost:

SELECT kennel FROM kennels ORDER BY REPLACE(kennel, 'the ','');
well, that is easy enough.
Many thanks.

bill
Dec 30 '06 #7
Jerry Stuckle wrote:
bill wrote:
>Jerry Stuckle wrote:
>>bill wrote:

I have a database of kennels. One page lists the kennels
alphabetical ly by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.

Some of the kennels have the word "The" as the first word in the
name and they do not want to be listed alphabetically by "The..."

Is there a way that I can request that mysql ignore "The" in a
kennel name when ordering it or must I create a new field for the
ordering and remove the "The" from the kennel name for that field ?

bill
comp.database s.mysql would be a much better place to ask this question.
my isp does not supply this ng.

can someone point me to a portal that will allow me to access it ?

bill

1. Ask your ISP to carry it. I've found most are quite amiable to
adding groups at user's requests.
been there, done that, no response to my request. (but it has
only been 7 days, so far :-\
>
2. Google Groups (if you really must).
Only if the wonderful people on this ng can't help.
bill

Dec 30 '06 #8
bill wrote:
Jerry Stuckle wrote:
>bill wrote:
>>Jerry Stuckle wrote:

bill wrote:

I have a database of kennels. One page lists the kennels
alphabetica lly by kennel name.
I have a field for kennel name and an index with kennel name as the
only field.
>
Some of the kennels have the word "The" as the first word in the
name and they do not want to be listed alphabetically by "The..."
>
Is there a way that I can request that mysql ignore "The" in a
kennel name when ordering it or must I create a new field for the
ordering and remove the "The" from the kennel name for that field ?
>
bill

comp.databas es.mysql would be a much better place to ask this question.

my isp does not supply this ng.

can someone point me to a portal that will allow me to access it ?

bill


1. Ask your ISP to carry it. I've found most are quite amiable to
adding groups at user's requests.


been there, done that, no response to my request. (but it has only been
7 days, so far :-\
>>
2. Google Groups (if you really must).


Only if the wonderful people on this ng can't help.
bill
The point is - this is not a mysql newsgroup. You should take your
questions to the appropriate newsgroup. That's why comp.databases. mysql
was created.

And I would suggest you ask your isp again. It might have gotten lost
during the holidays.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Dec 30 '06 #9
Jerry Stuckle wrote:
....
The point is - this is not a mysql newsgroup. You should take your
questions to the appropriate newsgroup. That's why comp.databases. mysql
was created.

And I would suggest you ask your isp again. It might have gotten lost
during the holidays.

Please allow me to cordially disagree with you.
Having been to the mysql reference website I find that while the
information is there, it is almost all oriented towards command
line usage, not from within PHP.

bill
Dec 31 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1695
by: Matt Fletcher | last post by:
Hi guys, I am trying to allow the models in a mysql database to be ordered by the site owner. I was thinking along the lines of a <SELECT> list containing the model names and Up and Down buttons to move the models up and down the list. I am unable to come up with a solution for getting the order from the list however.
8
5278
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5, etc.) What I'd like is something as simple as: CREATE TABLE junk (junklet VARCHAR(2500) CHARACTER SET UTF8)); import MySQLdb, re,urllib
15
4645
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
2
3432
by: Roopesh | last post by:
Hi, In my mod_python project I am using mysql as the database. There is table card in which unique cards are stored. When a user request comes he has to get a unique card. In this situation I want to use LOCK with which I can prevent other users accessing the table. I tried excuting "LOCK" command of mysql through python code, but it is not locking the database. Any ideas why this isn't working and how can I do the same. //python code...
2
9179
ak1dnar
by: ak1dnar | last post by:
Please take a look at for this jsp coding. here i can successfully insert the client details to the table. Only after inserting successfully i need to run another query.This will get the userID from the table.(Auto_Increment value). But i failed to build up a condition to check the insertion, how to do it. <%@ page language="java" import="java.sql.*" %> <% String driver = "org.gjt.mm.mysql.Driver";...
1
146
by: CBFalconer | last post by:
kooladi wrote: Yes. The first module that satisfies a function load request will normally resolve that function forever. This sequence is normally needed to make libraries flexible, but is not part of the standard. -- : Chuck F (cbfalconer at maineline dot net) : <http://cbfalconer.home.att.net> Try the download section.
9
2055
by: chromis | last post by:
Hi, I've never coded in ASP before and I'm trying to port a couple of simple PHP files to ASP.NET. The first file addScores.php takes form data and a hash and inserts the data into the db, it returns error or success depending on the success of the query. This is then used by a third party piece of software. My first problem is how to retrieve the result of an insert query to see if the query is successful or not: PHP Version: //...
3
2301
by: Jeff | last post by:
I know how to use php/mysql, but the html aspect of what Im trying to do (if its even possible this way) is what Im unsure of. I want to have a button that a user can hit to valid mysql info before submitting the full page of info. I know this doesnt work, but something like the following:
4
2296
by: janetopps | last post by:
I have an asp website, and i was using an MS Acess database, and i had to move to MySQL. I'm using a database converter, and some of the data shows, and other pulls up errors which im trying to resolve. At the bottom is the full code of this page, but here is the part that seems to be causing the problem. SELECT TOP 1 ID FROM nm_tbl_comment WHERE fldNEWS_ID = 3324 AND ID > 585 ORDER BY ID ASC When i ran the above code in the ...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.