Database Management

Just wondering how people manage the content that they pull
out from the
database.
For instance if some text was required to be highlighted bold
in the
middle of some other text, like this example:
The quick brown fox {jumps over} the lazy dog.
The way I'm doing it at the moment is to surround the {jumps
over} with
<strong> tags in the database.
However I seem to recall some more advanced database
exponents saying
its not a good idea to include html tags within a database?
Also take this example:
I have two items for sale. Item one has one price associated
with it and
item two has two prices associated with it. How the heck can
a details
page be set up to accomodate both one price and two prices.
The way I'm doing it at the moment is again using html tags
in the database.
Price Field
<p>£20.75</p>
and
<p>£18.75</p>
<p>£25.50</p>
I dont want to use two, three or four price fields in a
master details
page because those items that only have one price don't
require such a
set up. Plus I dont know at the outset of building the
database how many
alternative prices there wil be.
Is there a better and more efficient way of doing this as
again I seem
to recall there should be only one piece of information in a
database field
Cheers
Os

> The way you are suggesting, I think, is that there be
several price
> fields, maybe price_1, price_2 price_3 etc.
Nope. He is suggesting that you have two tables -
table1 - all the data except for price
table2 - two fields:
1. product ID
2. price
In table2 you might have several records containing the same
productID but
different prices.
When you define your recordset, you pull from both tables,
with a
SELECT *
FROM table1, table2
WHERE table1.productID = table2.productID. I think.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Osgood" <[email protected]> wrote in
message
news:[email protected]...
> Michael Fesser wrote:
>
>> .oO(Osgood)
>>
>>
>>>Just wondering how people manage the content that
they pull out from the
>>>database.
>>>
>>>For instance if some text was required to be
highlighted bold in the
>>>middle of some other text, like this example:
>>>
>>>The quick brown fox {jumps over} the lazy dog.
>>>
>>>The way I'm doing it at the moment is to surround
the {jumps over} with
>>><strong> tags in the database.
>>>
>>>However I seem to recall some more advanced
database exponents saying its
>>>not a good idea to include html tags within a
database?
>>
>>
>> Depends.
>>
>> Usually I try to avoid storing HTML in the database.
The data should
>> always be in a raw format without any
output-specific encoding if
>> possible. For rather simple things like above
something like BBCode
>> might be enough.
>>
>> Of course no rule without exception: On one of my
sites we get a lot of
>> third-party content each month, which has to go into
the DB and already
>> contains HTML lists, tables and such. It would have
been way too much
>> work to invent another more generic way of storing
that (XML, BBCode,
>> Wiki-style or whatever), so I simply store it as-is
in a large TEXT
>> field.
>>
>>
>>>Also take this example:
>>>
>>>I have two items for sale. Item one has one price
associated with it and
>>>item two has two prices associated with it. How
the heck can a details
>>>page be set up to accomodate both one price and
two prices.
>>
>>
>> Two tables: one for the product details, one for all
the prices. It's an
>> 1:m relation.
>>
>>
>>>The way I'm doing it at the moment is again using
html tags in the
>>>database.
>>>
>>>Price Field
>>>
>>><p>£20.75</p>
>>>
>>>and
>>>
>>><p>£18.75</p>
>>><p>£25.50</p>
>>
>>
>> Ugly. What if you would want to search the DB for
all products with or
>> below a given price? Impossible with your current
structure.
>
>
>>>I dont want to use two, three or four price
fields in a master details
>>>page because those items that only have one price
don't require such a
>>>set up. Plus I dont know at the outset of
building the database how many
>>>alternative prices there wil be.
>>
>>
>> That's exactly where you use a second table as
mentioned. And not only
>> for the prices, but whenever there's a chance that
there might be more
>> than one value required. Product categories would be
another example.
>
> Humm..... so how does that work on a master details
page?
>
> At the moment I just bind the 'price field' to the
container in the
> details page which I want the stored information to come
into. ONLY ONE
> field involved.
>
> The way you are suggesting, I think, is that there be
several price
> fields, maybe price_1, price_2 price_3 etc.
>
> However that means on the master details page I would
need to use
> something like this?
>
> <p><?php echo $row_rsPrice['price_1'];
?></p>
> <p><?php echo $row_rsPrice['price_2'];
?></p>
> <p><?php echo $row_rsPrice['price_3'];
?></p>
>
> However say there is no price_2 or price_3 for certain
items. That means I
> just get left with empty <p></p> tags in the
code?
>
>
>
>

Similar Messages

  • Database Manager for Address Book

    Help me! I seem to need to reconstruct my Address Book every time I change my PDA. the card formats are never quite the same....
    To date, I have been exporting to text files, cleaning the text tile with MS Word, opening the text file in Excel - doing my clean up and reorganization in Excel - saving as a text file, then importing the text file back into Address Book.
    Eh - and every time I do this, SOMEthing get screwed up. This time, I lost all the fax numbers!
    Question: Is there a database manager that will open the AddressBook.Data file in native format, allow me to make global changes or individual edits and resave the native format - without needing to do all of the exporting and importing and data corruption?
    Thanks for any feedback or comment!
    iMacG5 & PB 12"G4 & PB 15" Ti (G4)   Mac OS X (10.4.5)   Extreme Basestation & Belkin Enet Switch

    look at <http://homepage.mac.com/sroy/addressbookimporter>
    maybe this solves your problem.
    What PDA are you using?

  • CAN I USE THE ONLINE WORKSPACE FOR MY COMPAY'S DATABASE MANAGEMENT?

    Hi Forum,
    I am the Database Management System Administrator for the company I am working with. The company has branches in other regions of the country. In order to control and centralize its operational information management I have realized the need for the database to have internet link to help achieve the purpose. I have tried to connect my apex 11g to the internet but I have not succeeded. I am thinking of an alternative of using the Oracle Online Worskspace. Would Oracle allow me to use it? I shall also be glad if someone can still help me to configure my apex database to be accessed on the internet that can be used to manage large geographical operations.
    May God bless you and OTN forum
    Regards,
    Godis-Tei

    Godis-Tei wrote:
    I am the Database Management System Administrator for the company I am working with. The company has branches in other regions of the country. In order to control and centralize its operational information management I have realized the need for the database to have internet link to help achieve the purpose. I have tried to connect my apex 11g to the internet but I have not succeeded. I am thinking of an alternative of using the Oracle Online Worskspace. Would Oracle allow me to use it? No. The following conditions apply to use of apex.oracle.com:
    >
    This service is for demonstration purposes only. Use of this system to store sensitive data is prohibited.
    >
    and
    >
    This hosted Oracle Application Express instance is provided as a free demonstration service to anyone. Use of this system to store sensitive, offensive, unauthorized, or illegal data is prohibited. You are also prohibited from running production applications on this service.
    >
    May God bless you and OTN forumIn line with the OTN Terms and Conditions, please do not use religious language in the forum. It is irrelevant and likely to cause offence to users who do not share your beliefs.

  • Is oracle OODBMS (Object Oriented database management system)?

    Hello, All
    Is oracle OODBMS (Object Oriented database management system)? and if yes, please explain.
    I have query in my mind so, I just posted here.
    Regards,
    Rahul
    Edited by: Rahul K. Thakar on Nov 3, 2010 12:03 PM
    Edited by: Rahul K. Thakar on Nov 3, 2010 12:04 PM

    I believe the precise answer is that Oracle is ORDBMS (Object-Relational DBMS).For a brief period in time Oracle Corporation offered a product called Object Oriented Oracle (OOO).
    It was such a wonderous product that it was buried in the trash can of history when it did neither task very well.

  • Using MaxDB database manager via SAP::DBTech::dbm Perl module

    Hi,
    we would like to use the SAP::DBTech::dbm module to access the MaxDB database manager with perl.
    The MaxDB 7.7 doc states that the module is a component of the MaxDb software but I cannot find the perl includes.
    Does anybody know how to install or configure the module?
    In the MaxDB Installation I found in the file /sapdb/<SID>/db/doc/FirstSteps/Perl/HowToPerl.html that one has just to
    include the c:\programme\sdb\maxdb1/misc folder to $PERL5LIB. The folder exits but just contains the files to create and drop the demo database.
    Regards
    Thomas

    Hello Maike,
    as far as I understand your question, you'd like to automate the installation for your end-users.
    In the end it's a local installation where one user works with his/her Database Studio installation - correct?
    If it would be possible to add the end users to the user group 'SDB Operators' they should be able to create the user management database and Database Studio should work.
    Best regards,
    Melanie

  • DATABASE MANAGER ERROR "-4 database instance not found"

    Hi
    I have installed NNW 2004 ABAP Trial Version and everything seems to be good. SAP GUI is installed and MAX DB too.
    Except, I am unable to "add a database instance" in the Database Manager. The instructions tell me to leave the entries as default (database server: <local> and port: <default>) but then when I click the ADD button up pops the message:
    -4 database instance not found
    I have a 32 bit Intel Atom processor Netbook running Windows 7 with two drives C: and D:. I have tried disabling my antivir with no avail.
    I think the problem could be either:
    A) My installation is on the D drive but the database might be searching for something on the C drive????
    B) There are some "sap" type entries (like 200 of them) in my system32/drivers/etc/services file. One in particular is "sapdp00  3200/tcp" and I know the installation says make sure there are no "3200 ports". I would like to change this and save the file but up pops a message saying "access is denied" even though I have admin rights.
    Any help would be appreciated
    Josh

    Please, any hints or directions would help immensely as I am not a technical expert
    Thanks in advance

  • After upgrading to APEX 4.1 the database management GUI has been removed

    I've succesfully upgrated to APEX 4.1 on my database 10gXE
    The only problem is that now the database management GUI (Usage Monitor section) has been removed from APEX and I'd like to keep on dealing with DBA activities as before. How is it possibile? Now can I handle DBA activities only by using SQL*Plus and SQL Developer?
    Thanks!

    Hello Mark,
    unfortunately, that management GUI is an XE specific application build into the APEX version that shipped with XE. So basically, what you experience is correct: After an APEX upgrade, you can't use it anymore, because the "generic" APEX versions are not branded for XE.
    There is a theoretic possibility of using the command line exporter to export that management application from the old APEX instance before upgrading (or using a different XE instance that still has it) and import it to the upgraded APEX instance. But I would not recommend to do that, as APEX itself has changed a lot from the 2.2-branch that XE 10.2 shipped with to the 4.1 you use now. This can cause severe issues when using that application in 4.1, especially concerning the APEX management part of that application.
    Now can I handle DBA activities only by using SQL*Plus and SQL Developer?I'd recommend that. And I really think SQL Developer has become very handy for that purpose compared with the version that was out when XE 10.2 was released...
    -Udo

  • Comparisons between database management system

    Hello everybody
    i am new on this forum. I will like to know advantages and inconvenients of Oracle compared to SQL Server, MySQL, and other database management systems.
    Thank you for your precious help. I need that comparative studies urgently.
    Thanx

    Your question is way too broad to be answered in a forum post-- it would take hundreds of pages to do the topic justice.
    It's a bit like asking what the advantages & disadvantages are of an Indy car in comparison to a dump truck, a family sedan, an F1 racer, and other automobiles. You have to provide a lot of guidance as to which task or tasks you're seeking to accomplish and what sort of parameters you're working within.
    Justin

  • Advanced Database Management

    I need more information pertaining to Advanced Database Management. I request you to send me the relevant URL.
    Thanks in advance for your great help.
    Have a great day :)

    Try looking at this web site for Oracle 8.1.7 information: http://technet.oracle.com/docs/products/oracle8i/content.html
    The administrator's guide should help.
    Note: this web site is for Oracle Server Enterprise Edition
    Good Luck.

  • Database management systems trends

    Hello,
    Is there any official document which tries to predict the database management system trends? Like cloud computing? Distributed database systems?
    Thank you.

    Is there any official document which tries to predict the database management system trends? Like cloud computing? Distributed database systems?I doubt that there is any official document. Every analyst may see it differently.
    For example, my vision is -
    DBMSes move in various aspects simultaneously, including
    cloud computing and distributed database systems.
    Other aspects are:
    - standartisation of SQL language,
    - Very Large DB
    - using specific hardware and DB architecture for performance,
    - embedded DBs,
    - in memory DBs,
    - 100% online administration and management transparent to users,
    - automatic "self" administration and management
    - very smart optimizers
    - new data types (XML)
    - structure-less DBMS
    - DBMS that organizes data and detects data relationships automatically
    ...

  • Database management system DBMS

    hi
    i just start learning the oracle.
    some body can explain me the concept of
    hierarchical in database management system DBMS.
    thanks

    Hello,
    This is the Berkeley DB forum. For general database issues you can try:
    General Database Discussions
    Thanks,
    Sandra

  • Database Management Copy Data - Replace Option

    Can anyone provide info on how this works? we are using 9.2.1
    When using database management to copy data, when using the replace option, even if we only pick a few accounts to copy, it is erasing all data in the Target scenario. Does the replace option clear all data by default before copying in the selected data?
    we tried to use the Merge option but apparently that doesn't always work for some reason-could be user error. not sure.
    Thanks
    Wags

    Hey Wags- this is expected functionality of the Replace method. It clears all custom/account data for the load entity/year/period combo prior to do the load. For example, if there is P&L data in entity A in Jan 2010 and you load $500 to it in a Sales account, all the rest of the P&L data will be cleared and you'll just have $500 in the Sales account.
    Here's stuff from the guide:
    Several options are available for loading data into an application. You can merge, replace, or
    accumulate the data into the application. You select one of these options for each load process.
    Note:
    You cannot load calculated data into an application.
    Merge
    Select this option to overwrite the data in the application with the data from the file.
    For each unique point of view that exists in the data file and in the application, the value in the
    data file overwrites the data in the application.
    Note:
    If you have multiple values in the file for the same point of view, the system loads only the value
    for the last entry.
    If you select the Accumulate Within File option in conjunction with the Merge option, the system
    adds all values for the same point of view in the data file, and overwrites the data in the application
    with the total.
    For each unique point of view that is in the data file but does not have a value in the application,
    the value from the data file is loaded into the application.
    Replace
    For each unique combination of scenario, year, period, entity, and value in the data file, the
    system first clears all corresponding values from the application, then loads the value from the
    data file.
    Note:
    If you have multiple values in the file for the same unique combination of dimensions, the system
    loads only the value for the last entry.
    If you select the Accumulate Within File option in conjunction with the Replace option, the
    system clears the value from the application, adds all values for the same point of view in the
    data file, and loads the total.
    You can achieve the same result as using the Replace option with the Accumulate Within File
    option by using the Database Management module. You can organize the data in the file into
    groups based on Scenario, Year, Entity, Value, and Period.
    Use the Clear Data tab in the Database Management module to clear each unique combination
    of these dimensions, selecting all accounts including system accounts. Enter the data manually
    in a data grid, or load or copy the data into the application using the Merge or Accumulate load
    options. When you perform the Clear operation for a period in a subcube, data, cell text, and
    line item detail are cleared, but cell attachments are not cleared.
    Note:
    You may need to create several small files to load a data file using the Replace mode, especially
    if the data is very large or if the file contains ownership data. An error message is displayed if the
    file is too large when you try to load it.
    Replace by Security
    This option enables you to perform a data load in Replace mode even if you do not have access
    to all accounts. When you perform the Clear operation for a period in a subcube, only the cells
    to which you have access are cleared. Data, cell text, and line item detail are cleared, but cell
    attachments are not cleared.
    Accumulate
    For each unique point of view that exists in the data file and in the application, the value from
    the load file is added to the value in the application.
    Note:
    Data for system accounts is not accumulated.
    Accumulate Within File
    You can use the Accumulate Within File option in conjunction with the Merge and Replace
    options. This option accumulates the data in the file first and loads the totals into the application
    based on the load option selected.
    File Contains Ownership Data
    If the file contains ownership data, you must indicate this by selecting File Contains Ownership
    Data. If you do not select this option and the data file contains ownership or shares information,
    an error occurs when you load the file.

  • Database Management Productivity Application

    Apple supplies quite a few productivity applications for both OsX and iOS such as pages, keynote and numbers. However, they are missing a database management application such as Microsoft Access. I would like to create and maintain databases on the iPhone of items I am collecting in order to keep track what I have and in order to store information about the items I own. None of the current OsX or iOs productivity apps would allow me to do that.

    There are a number of database applications available, but none are part of the iWorks family. Teh need to use them across iOS and OS X may limited the choices a little bit, but a search of the App Store and the MAC App store should show you a few.

  • Standby database management quick notes

    Looking for standby database management quick notes

    Dataguard Broker or manually initiated failover.
    Please stop asking people to abstract docs in order to get 'quick notes'.
    Sybrand Bakker
    Senior Oracle DBA

  • Hypersonic SQL client program (Database Manager)

    I would like to ask if there are some hypersonic Sql client program which can provide me a convenient environment for altering the table structure easily.
    I have used the database manager provided by it and tried using other JDBC client program like isql in sourceforge.
    I dont know whether there is tools which is written for HSQLDB. If there is, please tell me. Thanks very much for your kind act!!

    sorry I should say it is HSQLDB
    Actually, it is very powerful and light such that many open source software love to use it.
    http://hsqldb.sourceforge.net
    Actually, the package it provided is enough for general purpose
    But for building complicated application , I think it is not enough if I change field and data type very often.

  • Oracle Database Management Software

    I'm curious about your opinions on database management packages. The first one being Grid Control, but also your opinions on Quest Spotlight, Central, etc & Symantec i3. And any other products that are used.
    Our 10gR2 DBs operate on Solaris 9 (soon to be 10) and are used for Data Warehousing purposes. I'm looking for a suite of tools that can help us manage our OS, Storage & DB products, if such a suite exists. It seems like we spend most of the day fighting fires and we want to get out in front of those things before they become issues for our users.
    Regards,
    Rich

    Oracle Enterprise Manager pretty well covers it all, and it comes free with the database. At 10g it becomes web based and comes in two flavors - dbcontrol for working with a single database (if you have multiple databases, each has its own dbcontrol) or Grid Control, which sets up a management server and provides a single point of control for all your databases.
    From what I've seen (and I've worked a little bit with Spotlight and DBArtisan) everything else just re-arranges the eye-candy - for a price.

Maybe you are looking for

  • Update ActiveX References Error

    There MUST be a simple way to update ActiveX References when a third party library has been updated to a new version. I had made up several VI's that passed the ActiveX Class Refnum around.  This refnum was generated by right-clicking on a standard A

  • Document of type Link are not getting classified

    Hi All, Document of type Link are not getting classified. 1) Is it a bug from SAP? 2) We are missing/messing something? Regards, Ganga.

  • Explode Bom in Purchase Order without Subcontracting

    Hi Colleagues, I have a sales BOM to represent a 'kitted item' (Lets say TV and TV stand) that are stocked as standard individual products. These component level items are purchased from the same supplier Is there a way of being able to raise a purch

  • Unknown error when login to app store

    every time i try to log into app store i get an unknown error. what do i do to resolved

  • Flash in flex nightmare

    Hi All So I am building a simple flex site wich loads a flash swf file into it. In the real site that file is a photo gallery that I have. for debugging I have created a simple flash file. I have ran accross a few wierd bugs. the movie is very simple