Inventory Database Design? Get historical data from DB for reporting & accountingInventory Database...

Reading source code and extracting json from a url

Why is the meaning of kanji 閑 "leisure"?

Multiplying elements of a list

Ramanujan's radical and how we define an infinite nested radical

Which was the first story to feature space elevators?

Why didn't Lorentz conclude that no object can go faster than light?

Is corrosion inhibitor paste conductive?

Does changing "sa" password require a SQL restart (in mixed mode)?

Can I legally make a website about boycotting a certain company?

Why is quixotic not Quixotic (a proper adjective)?

Do error bars on probabilities have any meaning?

What is formjacking?

Boss asked me to sign a resignation paper without a date on it along with my new contract

Can you wish for more wishes from an Efreeti bound to service via an Efreeti Bottle?

How should I ship cards?

How can I make my enemies feel real and make combat more engaging?

Rudeness by being polite

Why is Shelob considered evil?

multiple null checks in Java8

I hate taking lectures, can I still survive in academia?

Stream.findFirst different than Optional.of?

How many copper coins fit inside a cubic foot?

Distortion of City -Boundary-Polygons proportional to population size in QGIS?

The Late Queen Gives in to Remorse - Reverse Hangman



Inventory Database Design? Get historical data from DB for reporting & accounting


Inventory Database Design Issuebarcode inventory design - transaction or master?Database design for storing historical nmap dataQuotation and invoice mysql tableNormalization from UNF to 3NFHelp with design of sales databaseAdvice needed regarding design of database schema keeping record of current stockdatabase design for inventory from transactionsBest way to store physical stock data in a SQL dbdatabase design for accounting systems













0















Following is the design of my db:



Product:



ID
Name
Quantity in Hand (as on date - total across all format)
Reorder_point
Remarks


Warehouse:



ID
Name
Address
Remarks
is_default


Inventory:



ID
Product FK
Warehouse FK
Quantity
Purchased_on (This field is to be used to consider product ageing)
Purchase Rate
Tentative Sales Rate
MRP


Purchase Order/Sales Invoice Table (Both are similar)



ID
Total
Date
Warehouse FK
Vendor FK/Customer FK
Amount Paid/Amount Received


Line Item for Purchase/Sales



Product FK
Unit FK (We have a unit table to maintain conversion from one unit to other, eg: Dozen to Nos, etc)
Quantity
purchase_price/sales_price


Now, I wanted to know:




  1. Is this a good DB design, or does it have an inherent fault somewhere?


  2. Suppose two products, varying only in flavor - how would that be reflected here? (They may not need separate product ID/SKU)


  3. Most importantly, I can always get the inventory in hand, but let's say, today is 2nd May & I need to know inventory details as on 15th April, how can this db design do it? Or is there a better DB design to handle that?



Edit



As of now let's assume purchase and sales happen immediately (as in, there's no purchase order & sales order in between).



Now, the issue with the inventory table is I can't calculate the historical value of the inventory. As in, lets say the value of the inventory in 3rd May s $500000, how can I find out the inventory value in 10th April from the data I have here?










share|improve this question

























  • @Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

    – Sayantan
    May 3 '17 at 14:12
















0















Following is the design of my db:



Product:



ID
Name
Quantity in Hand (as on date - total across all format)
Reorder_point
Remarks


Warehouse:



ID
Name
Address
Remarks
is_default


Inventory:



ID
Product FK
Warehouse FK
Quantity
Purchased_on (This field is to be used to consider product ageing)
Purchase Rate
Tentative Sales Rate
MRP


Purchase Order/Sales Invoice Table (Both are similar)



ID
Total
Date
Warehouse FK
Vendor FK/Customer FK
Amount Paid/Amount Received


Line Item for Purchase/Sales



Product FK
Unit FK (We have a unit table to maintain conversion from one unit to other, eg: Dozen to Nos, etc)
Quantity
purchase_price/sales_price


Now, I wanted to know:




  1. Is this a good DB design, or does it have an inherent fault somewhere?


  2. Suppose two products, varying only in flavor - how would that be reflected here? (They may not need separate product ID/SKU)


  3. Most importantly, I can always get the inventory in hand, but let's say, today is 2nd May & I need to know inventory details as on 15th April, how can this db design do it? Or is there a better DB design to handle that?



Edit



As of now let's assume purchase and sales happen immediately (as in, there's no purchase order & sales order in between).



Now, the issue with the inventory table is I can't calculate the historical value of the inventory. As in, lets say the value of the inventory in 3rd May s $500000, how can I find out the inventory value in 10th April from the data I have here?










share|improve this question

























  • @Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

    – Sayantan
    May 3 '17 at 14:12














0












0








0








Following is the design of my db:



Product:



ID
Name
Quantity in Hand (as on date - total across all format)
Reorder_point
Remarks


Warehouse:



ID
Name
Address
Remarks
is_default


Inventory:



ID
Product FK
Warehouse FK
Quantity
Purchased_on (This field is to be used to consider product ageing)
Purchase Rate
Tentative Sales Rate
MRP


Purchase Order/Sales Invoice Table (Both are similar)



ID
Total
Date
Warehouse FK
Vendor FK/Customer FK
Amount Paid/Amount Received


Line Item for Purchase/Sales



Product FK
Unit FK (We have a unit table to maintain conversion from one unit to other, eg: Dozen to Nos, etc)
Quantity
purchase_price/sales_price


Now, I wanted to know:




  1. Is this a good DB design, or does it have an inherent fault somewhere?


  2. Suppose two products, varying only in flavor - how would that be reflected here? (They may not need separate product ID/SKU)


  3. Most importantly, I can always get the inventory in hand, but let's say, today is 2nd May & I need to know inventory details as on 15th April, how can this db design do it? Or is there a better DB design to handle that?



Edit



As of now let's assume purchase and sales happen immediately (as in, there's no purchase order & sales order in between).



Now, the issue with the inventory table is I can't calculate the historical value of the inventory. As in, lets say the value of the inventory in 3rd May s $500000, how can I find out the inventory value in 10th April from the data I have here?










share|improve this question
















Following is the design of my db:



Product:



ID
Name
Quantity in Hand (as on date - total across all format)
Reorder_point
Remarks


Warehouse:



ID
Name
Address
Remarks
is_default


Inventory:



ID
Product FK
Warehouse FK
Quantity
Purchased_on (This field is to be used to consider product ageing)
Purchase Rate
Tentative Sales Rate
MRP


Purchase Order/Sales Invoice Table (Both are similar)



ID
Total
Date
Warehouse FK
Vendor FK/Customer FK
Amount Paid/Amount Received


Line Item for Purchase/Sales



Product FK
Unit FK (We have a unit table to maintain conversion from one unit to other, eg: Dozen to Nos, etc)
Quantity
purchase_price/sales_price


Now, I wanted to know:




  1. Is this a good DB design, or does it have an inherent fault somewhere?


  2. Suppose two products, varying only in flavor - how would that be reflected here? (They may not need separate product ID/SKU)


  3. Most importantly, I can always get the inventory in hand, but let's say, today is 2nd May & I need to know inventory details as on 15th April, how can this db design do it? Or is there a better DB design to handle that?



Edit



As of now let's assume purchase and sales happen immediately (as in, there's no purchase order & sales order in between).



Now, the issue with the inventory table is I can't calculate the historical value of the inventory. As in, lets say the value of the inventory in 3rd May s $500000, how can I find out the inventory value in 10th April from the data I have here?







postgresql database-design schema






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 3 '17 at 10:54







Sayantan

















asked May 3 '17 at 5:16









SayantanSayantan

164




164













  • @Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

    – Sayantan
    May 3 '17 at 14:12



















  • @Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

    – Sayantan
    May 3 '17 at 14:12

















@Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

– Sayantan
May 3 '17 at 14:12





@Nick, that's it. You've made my day. I now understand it's a lot sales focused rather than stock focused. And I shall try to improve on my schema. Getting back, it's not the "quantity", but the "value", as in quantity*(price of that product)...... Let me try reworking a bit and shall get back. Thanks a lot again.

– Sayantan
May 3 '17 at 14:12










1 Answer
1






active

oldest

votes


















0














Answer originally left in comments by Nick McDermaid




  1. It depends on your requirements. In the current model you can't record the same order, different item taken from a warehouse on a different day - the date is at order level.

  2. You could add a flavour attribute either to the Product table (in which case it gets a new id), or to the LineItem table.

  3. Maybe. If the correct product IN date is in Inventory, and the correct product OUT date is in the purchase order header you can. But this doesn't appear to have the correct level of detail for inventory, more sales... depends.


By correct level of detail, what I mean is: Does PurchaseOrder.Date record when every widget left the warehouse? I don't think so. It most likely records when you a purchase order was raised. That PO might consist of 5 widgets. Three were picked and supplied from warehouse A on 1st May, and two were picked and supplied from warehouse B on 3rd May. I don't think your current set of tables have enough detail to describe when things left the warehouse (unless they all leave the same warehouse immediately that you get the PO, highly unlikely).



You don't have a 'left warehouse' transaction table so you don't know what date items left the warehouse so you can't work back and calculate inventory. warehouse db's usually have a 'warehouse transaction' table that records when items arrived and left the warehouse. You don't have that in your model. PurchaseOrder has a date but it doesn't really record when items left. Inventory has a date but it probably doesn't really record when the item arrived. You also need to periodically record stocktake levels.



To "find out the inventory value in 10th April from the data I have here" you take the current inventory value (today) and reverse all the inventory in transactions back to 10th April (from inventory table I guess), and also reverse all the sale (inventory out) transactions and you'll arrive at where you were on 10th April. As long as you are recording all inventory in and out transactions, and you know what you have today, you can work it out. But how do you know what you have today? Do you do a stocktake every day?



So if you have 10 cogs and 20 widgets today and over the last two weeks you had a total of 6 cogs in and 8 cogs out, you know that you effectively had -2 cogs over that time, so you must've had 10 - (-2) = 12 cogs two weeks ago. It's actually more realistic to calculate a stock balance based off a historical stock take and add forwards. You might have a stocktake every 3 months. From your stocktake in Jan you had 12 cogs, and from Jan to Apr you had 7 cogs in and sold 2 cogs so you know in April you had 12+7 - 2 = 17 cogs.



Notice a theme here? You need to understand your business. You need to analyse it. Back to your actual schema: it's not really stock focused, it's sales focused. You need a dedicated stock transaction table if you want to track stock levels. Lastly, there are many sample stock schemas online. Like this one: https://stackoverflow.com/questions/4380091/best-structure-for-inventory-database






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172574%2finventory-database-design-get-historical-data-from-db-for-reporting-accountin%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Answer originally left in comments by Nick McDermaid




    1. It depends on your requirements. In the current model you can't record the same order, different item taken from a warehouse on a different day - the date is at order level.

    2. You could add a flavour attribute either to the Product table (in which case it gets a new id), or to the LineItem table.

    3. Maybe. If the correct product IN date is in Inventory, and the correct product OUT date is in the purchase order header you can. But this doesn't appear to have the correct level of detail for inventory, more sales... depends.


    By correct level of detail, what I mean is: Does PurchaseOrder.Date record when every widget left the warehouse? I don't think so. It most likely records when you a purchase order was raised. That PO might consist of 5 widgets. Three were picked and supplied from warehouse A on 1st May, and two were picked and supplied from warehouse B on 3rd May. I don't think your current set of tables have enough detail to describe when things left the warehouse (unless they all leave the same warehouse immediately that you get the PO, highly unlikely).



    You don't have a 'left warehouse' transaction table so you don't know what date items left the warehouse so you can't work back and calculate inventory. warehouse db's usually have a 'warehouse transaction' table that records when items arrived and left the warehouse. You don't have that in your model. PurchaseOrder has a date but it doesn't really record when items left. Inventory has a date but it probably doesn't really record when the item arrived. You also need to periodically record stocktake levels.



    To "find out the inventory value in 10th April from the data I have here" you take the current inventory value (today) and reverse all the inventory in transactions back to 10th April (from inventory table I guess), and also reverse all the sale (inventory out) transactions and you'll arrive at where you were on 10th April. As long as you are recording all inventory in and out transactions, and you know what you have today, you can work it out. But how do you know what you have today? Do you do a stocktake every day?



    So if you have 10 cogs and 20 widgets today and over the last two weeks you had a total of 6 cogs in and 8 cogs out, you know that you effectively had -2 cogs over that time, so you must've had 10 - (-2) = 12 cogs two weeks ago. It's actually more realistic to calculate a stock balance based off a historical stock take and add forwards. You might have a stocktake every 3 months. From your stocktake in Jan you had 12 cogs, and from Jan to Apr you had 7 cogs in and sold 2 cogs so you know in April you had 12+7 - 2 = 17 cogs.



    Notice a theme here? You need to understand your business. You need to analyse it. Back to your actual schema: it's not really stock focused, it's sales focused. You need a dedicated stock transaction table if you want to track stock levels. Lastly, there are many sample stock schemas online. Like this one: https://stackoverflow.com/questions/4380091/best-structure-for-inventory-database






    share|improve this answer




























      0














      Answer originally left in comments by Nick McDermaid




      1. It depends on your requirements. In the current model you can't record the same order, different item taken from a warehouse on a different day - the date is at order level.

      2. You could add a flavour attribute either to the Product table (in which case it gets a new id), or to the LineItem table.

      3. Maybe. If the correct product IN date is in Inventory, and the correct product OUT date is in the purchase order header you can. But this doesn't appear to have the correct level of detail for inventory, more sales... depends.


      By correct level of detail, what I mean is: Does PurchaseOrder.Date record when every widget left the warehouse? I don't think so. It most likely records when you a purchase order was raised. That PO might consist of 5 widgets. Three were picked and supplied from warehouse A on 1st May, and two were picked and supplied from warehouse B on 3rd May. I don't think your current set of tables have enough detail to describe when things left the warehouse (unless they all leave the same warehouse immediately that you get the PO, highly unlikely).



      You don't have a 'left warehouse' transaction table so you don't know what date items left the warehouse so you can't work back and calculate inventory. warehouse db's usually have a 'warehouse transaction' table that records when items arrived and left the warehouse. You don't have that in your model. PurchaseOrder has a date but it doesn't really record when items left. Inventory has a date but it probably doesn't really record when the item arrived. You also need to periodically record stocktake levels.



      To "find out the inventory value in 10th April from the data I have here" you take the current inventory value (today) and reverse all the inventory in transactions back to 10th April (from inventory table I guess), and also reverse all the sale (inventory out) transactions and you'll arrive at where you were on 10th April. As long as you are recording all inventory in and out transactions, and you know what you have today, you can work it out. But how do you know what you have today? Do you do a stocktake every day?



      So if you have 10 cogs and 20 widgets today and over the last two weeks you had a total of 6 cogs in and 8 cogs out, you know that you effectively had -2 cogs over that time, so you must've had 10 - (-2) = 12 cogs two weeks ago. It's actually more realistic to calculate a stock balance based off a historical stock take and add forwards. You might have a stocktake every 3 months. From your stocktake in Jan you had 12 cogs, and from Jan to Apr you had 7 cogs in and sold 2 cogs so you know in April you had 12+7 - 2 = 17 cogs.



      Notice a theme here? You need to understand your business. You need to analyse it. Back to your actual schema: it's not really stock focused, it's sales focused. You need a dedicated stock transaction table if you want to track stock levels. Lastly, there are many sample stock schemas online. Like this one: https://stackoverflow.com/questions/4380091/best-structure-for-inventory-database






      share|improve this answer


























        0












        0








        0







        Answer originally left in comments by Nick McDermaid




        1. It depends on your requirements. In the current model you can't record the same order, different item taken from a warehouse on a different day - the date is at order level.

        2. You could add a flavour attribute either to the Product table (in which case it gets a new id), or to the LineItem table.

        3. Maybe. If the correct product IN date is in Inventory, and the correct product OUT date is in the purchase order header you can. But this doesn't appear to have the correct level of detail for inventory, more sales... depends.


        By correct level of detail, what I mean is: Does PurchaseOrder.Date record when every widget left the warehouse? I don't think so. It most likely records when you a purchase order was raised. That PO might consist of 5 widgets. Three were picked and supplied from warehouse A on 1st May, and two were picked and supplied from warehouse B on 3rd May. I don't think your current set of tables have enough detail to describe when things left the warehouse (unless they all leave the same warehouse immediately that you get the PO, highly unlikely).



        You don't have a 'left warehouse' transaction table so you don't know what date items left the warehouse so you can't work back and calculate inventory. warehouse db's usually have a 'warehouse transaction' table that records when items arrived and left the warehouse. You don't have that in your model. PurchaseOrder has a date but it doesn't really record when items left. Inventory has a date but it probably doesn't really record when the item arrived. You also need to periodically record stocktake levels.



        To "find out the inventory value in 10th April from the data I have here" you take the current inventory value (today) and reverse all the inventory in transactions back to 10th April (from inventory table I guess), and also reverse all the sale (inventory out) transactions and you'll arrive at where you were on 10th April. As long as you are recording all inventory in and out transactions, and you know what you have today, you can work it out. But how do you know what you have today? Do you do a stocktake every day?



        So if you have 10 cogs and 20 widgets today and over the last two weeks you had a total of 6 cogs in and 8 cogs out, you know that you effectively had -2 cogs over that time, so you must've had 10 - (-2) = 12 cogs two weeks ago. It's actually more realistic to calculate a stock balance based off a historical stock take and add forwards. You might have a stocktake every 3 months. From your stocktake in Jan you had 12 cogs, and from Jan to Apr you had 7 cogs in and sold 2 cogs so you know in April you had 12+7 - 2 = 17 cogs.



        Notice a theme here? You need to understand your business. You need to analyse it. Back to your actual schema: it's not really stock focused, it's sales focused. You need a dedicated stock transaction table if you want to track stock levels. Lastly, there are many sample stock schemas online. Like this one: https://stackoverflow.com/questions/4380091/best-structure-for-inventory-database






        share|improve this answer













        Answer originally left in comments by Nick McDermaid




        1. It depends on your requirements. In the current model you can't record the same order, different item taken from a warehouse on a different day - the date is at order level.

        2. You could add a flavour attribute either to the Product table (in which case it gets a new id), or to the LineItem table.

        3. Maybe. If the correct product IN date is in Inventory, and the correct product OUT date is in the purchase order header you can. But this doesn't appear to have the correct level of detail for inventory, more sales... depends.


        By correct level of detail, what I mean is: Does PurchaseOrder.Date record when every widget left the warehouse? I don't think so. It most likely records when you a purchase order was raised. That PO might consist of 5 widgets. Three were picked and supplied from warehouse A on 1st May, and two were picked and supplied from warehouse B on 3rd May. I don't think your current set of tables have enough detail to describe when things left the warehouse (unless they all leave the same warehouse immediately that you get the PO, highly unlikely).



        You don't have a 'left warehouse' transaction table so you don't know what date items left the warehouse so you can't work back and calculate inventory. warehouse db's usually have a 'warehouse transaction' table that records when items arrived and left the warehouse. You don't have that in your model. PurchaseOrder has a date but it doesn't really record when items left. Inventory has a date but it probably doesn't really record when the item arrived. You also need to periodically record stocktake levels.



        To "find out the inventory value in 10th April from the data I have here" you take the current inventory value (today) and reverse all the inventory in transactions back to 10th April (from inventory table I guess), and also reverse all the sale (inventory out) transactions and you'll arrive at where you were on 10th April. As long as you are recording all inventory in and out transactions, and you know what you have today, you can work it out. But how do you know what you have today? Do you do a stocktake every day?



        So if you have 10 cogs and 20 widgets today and over the last two weeks you had a total of 6 cogs in and 8 cogs out, you know that you effectively had -2 cogs over that time, so you must've had 10 - (-2) = 12 cogs two weeks ago. It's actually more realistic to calculate a stock balance based off a historical stock take and add forwards. You might have a stocktake every 3 months. From your stocktake in Jan you had 12 cogs, and from Jan to Apr you had 7 cogs in and sold 2 cogs so you know in April you had 12+7 - 2 = 17 cogs.



        Notice a theme here? You need to understand your business. You need to analyse it. Back to your actual schema: it's not really stock focused, it's sales focused. You need a dedicated stock transaction table if you want to track stock levels. Lastly, there are many sample stock schemas online. Like this one: https://stackoverflow.com/questions/4380091/best-structure-for-inventory-database







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        Comment ConverterComment Converter

        1,2621325




        1,2621325






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172574%2finventory-database-design-get-historical-data-from-db-for-reporting-accountin%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

            Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

            How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...