Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySql sql / 4 сообщений из 4, страница 1 из 1
04.02.2015, 21:44:37
    #38871777
Gorblog
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
MySql sql
помогите решить задачу! Очень важно!!!!!!!!!!!

Consider the following tables:
TABLE `invoice`
Fields:
id: BIGINT(11) PRIMARY_KEY, AUTO INCREMENT,
first_name: VARCHAR(255),
last_name : VARCHAR(255),
issue_date: DATETIME,
product_amount: DECIMAL(7,2),
tax_amount : DECIMAL(7,2),
total_amount : DECIMAL(7,2),

TABLE `invoice_items`
Fields:
id: BIGINT(11) PRIMARY_KEY, AUTO_INCREMENT,
id_invoice: BIGINT(11) , FOREIGN_KEY ON invoice.id
item_name: VARCHAR(255),
product_cost: DECIMAL(7,2),
tax_cost: DECIMAL(7,2),
total_cost: DECIMAL(7,2)

The invoice table stores invoice information and invoice_items stores the items of the invoice.
Invoice.product_amount contains the sum of all product_costs for each item belonging to the invoice.
Invoice.tax_amount contains the sum of all tax_costs for each item belonging to the invoice.
Invoice.total_amount contains the sum of all total_costs for each item belonging to the invoice.

Also keep in mind :
Total_cost = Product_cost + Tax_cost
Tax_cost = 15% * Product_cost

Please write a model which exposes methods for the following:
1. Create a new invoice
2. Add an item in an invoice
3. Remove an item in an invoice
4. Remove an invoice
5. Edit an invoice issue date
6. Edit the product cost of an invoice.
...
Рейтинг: 0 / 0
05.02.2015, 06:41:07
    #38871861
tanglir
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
MySql sql
Gorblogпомогите решить 12381461
...
Рейтинг: 0 / 0
05.02.2015, 08:55:00
    #38871895
Gorblog
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
MySql sql
решил первую часть, no половине второго остановился
...
Рейтинг: 0 / 0
05.02.2015, 10:13:32
    #38871954
tanglir
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
MySql sql
вижу в архиве кучу похапешек и ничего больше
при чём тут mysql?
...
Рейтинг: 0 / 0
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySql sql / 4 сообщений из 4, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]