Showing posts with label rate. Show all posts
Showing posts with label rate. Show all posts

Monday, March 26, 2012

Hidding column in query

Here is my code.

SELECT [Owner].[First Name], [Owner].[Last Name], [Condo].[Unit Number],
[Condo].[Weekly Rate], [Condo].[Linens]

FROM [Owner], [Condo]

WHERE [Condo].[Linens]=True

AND [Owner].[Owner ID]=[Condo].[Owner ID]

ORDER BY [Condo].[Unit Number];

I am trying to not display "Linens" column in my query result.Any idea how
can i achive that. Thanks in advanceW. Adam (wogla@.sbcglobal.net) writes:
> Here is my code.
> SELECT [Owner].[First Name], [Owner].[Last Name], [Condo].[Unit Number],
> [Condo].[Weekly Rate], [Condo].[Linens]
> FROM [Owner], [Condo]
> WHERE [Condo].[Linens]=True
> AND [Owner].[Owner ID]=[Condo].[Owner ID]
> ORDER BY [Condo].[Unit Number];
> I am trying to not display "Linens" column in my query result.Any idea how
> can i achive that. Thanks in advance

Well, just don't display it!

Seriously, this is likely to be a GUI issue, and you should probably
ask in a forum devoted to the GUI tool you are using.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||"W. Adam" <wogla@.sbcglobal.net> wrote in message
news:tL5Cb.11236$aw2.5741825@.newssrv26.news.prodig y.com...
> Here is my code.
> SELECT [Owner].[First Name], [Owner].[Last Name], [Condo].[Unit Number],
> [Condo].[Weekly Rate], [Condo].[Linens]
> FROM [Owner], [Condo]
> WHERE [Condo].[Linens]=True
> AND [Owner].[Owner ID]=[Condo].[Owner ID]
> ORDER BY [Condo].[Unit Number];
>
>
> I am trying to not display "Linens" column in my query result.Any idea how
> can i achive that. Thanks in advance

There are two answers to this question. The first being, just don't select
the field

SELECT [Owner].[First Name], [Owner].[Last Name], [Condo].[Unit Number],
[Condo].[Weekly Rate]
FROM [Owner], [Condo]
WHERE [Condo].[Linens]=True
AND [Owner].[Owner ID]=[Condo].[Owner ID]
ORDER BY [Condo].[Unit Number];

- or -

If you need the linens value but don't want to display it, handle this in
business layer (class, dll, module, mts, etc.), or your presentation layer
(application, web page, etc.).

BV.
www.iheartmypond.com

Monday, February 27, 2012

HELP: REGEXP accurences count

Hello everyone,

sorry for my bad English. I have to create a query under mySQL for a
small research engine; I have to rate the results of a simple regular
expression matches inside a text field. I gave a look to the function REGEXP
that mySQL offers, but it seems do give just a boolean result, 1 or 0!!!
What i need is that the regexp funtion gave back the number of the total
matches occured inside a field of every line. Do you know if mySQL offers
this opportunity? Maybe using onother function instead REGEXP?

Thank you all,

Federico.Federico Bari (fede72bari@.tiscali.it) writes:
> sorry for my bad English. I have to create a query under mySQL for a
> small research engine; I have to rate the results of a simple regular
> expression matches inside a text field. I gave a look to the function
> REGEXP that mySQL offers, but it seems do give just a boolean result, 1
> or 0!!! What i need is that the regexp funtion gave back the number of
> the total matches occured inside a field of every line. Do you know if
> mySQL offers this opportunity? Maybe using onother function instead
> REGEXP?

This is a newsgroup about MS SQL Server which is a completely different
product from MySQL. You will have to find a forum for MySQL.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp